function filter_admin_overview_submit
filter_admin_overview_submit($form, &$form_state)
Form submission handler for filter_admin_overview().
File
- modules/filter/filter.admin.inc, line 52
- Administrative page callbacks for the Filter module.
Code
function filter_admin_overview_submit($form, &$form_state) { foreach ($form_state['values']['formats'] as $id => $data) { if (is_array($data) && isset($data['weight'])) { // Only update if this is a form element with weight. db_update('filter_format') ->fields(array('weight' => $data['weight'])) ->condition('format', $id) ->execute(); } } filter_formats_reset(); drupal_set_message(t('The text format ordering has been saved.')); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!filter!filter.admin.inc/function/filter_admin_overview_submit/7.x