public function sweaver_plugin_themeclasses::sweaver_menu_callback in Sweaver 7
Same name and namespace in other branches
- 6 plugins/sweaver_plugin_themeclasses/sweaver_plugin_themeclasses.inc \sweaver_plugin_themeclasses::sweaver_menu_callback()
Menu callback.
Overrides sweaver_plugin::sweaver_menu_callback
File
- plugins/
sweaver_plugin_themeclasses/ sweaver_plugin_themeclasses.inc, line 87 - Theme classes plugin.
Class
Code
public function sweaver_menu_callback() {
$form = array();
$form['sweaver_themeclasses_groups'] = array(
'#type' => 'textarea',
'#title' => t('Theme groups'),
'#description' => t('Enter a group which is available in your theme(s) info file. This plugin will try to fetch all classes from it and make them available in a separate tab. Enter one group per line. This is inspired by the skinr way of theming, so we need to find a key called \'class\' to get a list of styles. If you have added new classes and the editor does not pick them up yet, click on submit button to reset the cache.'),
'#default_value' => variable_get('sweaver_themeclasses_groups', SWEAVER_PLUGIN_THEMECLASSES_DEFAULT),
'#wysiwyg' => FALSE,
);
$form['sweaver_themeclasses_submit'] = array(
'#type' => 'submit',
'#value' => t('Save configuration'),
);
return $form;
}