function wysiwyg_template_overview_submit in Wysiwyg API template plugin 7.2
Form submit function. Update the template weights.
1 string reference to 'wysiwyg_template_overview_submit'
- wysiwyg_template_overview in ./
wysiwyg_template.admin.inc - Wysiwyg template overview page - view templates and edit them
File
- ./
wysiwyg_template.admin.inc, line 64 - Administrative page callbacks for the Wysiwyg Template module.
Code
function wysiwyg_template_overview_submit($form, &$form_state) {
foreach ($form_state['values']['wysiwyg_templates'] as $name => $template_values) {
db_update('wysiwyg_templates')
->fields(array(
'weight' => $template_values['weight'],
))
->condition('name', $name)
->execute();
}
drupal_set_message(t('The Wysiwyg template settings have been updated.'));
}