function block_admin_configure_submit in Drupal 4
Same name and namespace in other branches
- 5 modules/block/block.module \block_admin_configure_submit()
- 6 modules/block/block.admin.inc \block_admin_configure_submit()
- 7 modules/block/block.admin.inc \block_admin_configure_submit()
File
- modules/
block.module, line 447 - Controls the boxes that are displayed around the main content.
Code
function block_admin_configure_submit($form_id, $form_values) {
if (!form_get_errors()) {
db_query("UPDATE {blocks} SET visibility = %d, pages = '%s', custom = %d WHERE module = '%s' AND delta = '%s'", $form_values['visibility'], trim($form_values['pages']), $form_values['custom'], $form_values['module'], $form_values['delta']);
module_invoke($form_values['module'], 'block', 'save', $form_values['delta'], $form_values);
drupal_set_message(t('The block configuration has been saved.'));
cache_clear_all();
return 'admin/block';
}
}