function page_theme_admin_overview_submit in Page Theme 7
Same name and namespace in other branches
- 6 page_theme.admin.inc \page_theme_admin_overview_submit()
- 7.2 page_theme.admin.inc \page_theme_admin_overview_submit()
File
- ./
page_theme.admin.inc, line 105 - Admin page callbacks for the page_theme module.
Code
function page_theme_admin_overview_submit($form, &$form_state) {
foreach ($form_state['values']['themes'] as $theme => $value) {
$field = array();
$field['status'] = $value['status'];
$field['weight'] = $value['weight'];
db_update('page_theme')
->fields($field)
->condition('theme', $theme)
->execute();
}
drupal_set_message(t('The configuration has been saved.'));
}