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