function sweaverThemeSettings::performStyleAction in Sweaver 7
Same name and namespace in other branches
- 6 tests/sweaver.themesettings.test \sweaverThemeSettings::performStyleAction()
Call submit methods.
Parameters
$op: The name of the submit button on the Load/save tab.
$form_state: A (small) version of the form_state.
$form: The form array.
3 calls to sweaverThemeSettings::performStyleAction()
- sweaverThemeSettings::sweaverDeleteStyle in tests/
sweaver.themesettings.test - Delete a style.
- sweaverThemeSettings::sweaverPublishStyle in tests/
sweaver.themesettings.test - Publish a style.
- sweaverThemeSettings::sweaverSaveStyle in tests/
sweaver.themesettings.test - Save a style.
File
- tests/
sweaver.themesettings.test, line 185 - Advanced tests for sweaver editor + theme settings.
Class
- sweaverThemeSettings
- @file Advanced tests for sweaver editor + theme settings.
Code
function performStyleAction($op, $form_state, $form = array()) {
$sweaver = Sweaver::get_instance();
$sweaver_plugin = $sweaver
->get_plugin('sweaver_plugin');
// Additional form_state properties
$form_state['clicked_button']['#value'] = t($op);
// Call submit methods.
foreach (array_keys($sweaver
->get_plugins_registry(TRUE)) as $plugin_name) {
$sweaver_plugin = $sweaver
->get_plugin($plugin_name);
$sweaver_plugin
->sweaver_form_submit($form, $form_state);
}
}