Give plugins a pluginType field

Ordinary plugins have the type "plugin", we'll also have "theme" and
"language"
This commit is contained in:
Jeremy Ruston 2013-04-28 18:16:22 +01:00
parent 996a7279ed
commit 40ac461ca1
2 changed files with 5 additions and 5 deletions

View File

@ -1038,10 +1038,9 @@ $tw.loadPluginFolder = function(filepath,excludeRegExp) {
title: pluginInfo.title,
type: "application/json",
plugin: "yes",
text: JSON.stringify(pluginInfo,null,4)
}
if("pluginPriority" in pluginInfo) {
fields.pluginPriority = pluginInfo.pluginPriority;
text: JSON.stringify(pluginInfo,null,4),
pluginPriority: pluginInfo.pluginPriority,
pluginType: pluginInfo.pluginType || "plugin"
}
return fields;
} else {

View File

@ -3,5 +3,6 @@
"description": "A simple, plain layout",
"author": "JeremyRuston",
"version": "0.0.0",
"coreVersion": ">=5.0.0"
"coreVersion": ">=5.0.0",
"pluginType": "theme"
}