function filter_admin_overview_submit
Form submission handler for filter_admin_overview().
File
-
modules/
filter/ filter.admin.inc, line 52
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.'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.