function panels_page_disable_page in Panels 5.2
Same name and namespace in other branches
- 6.2 panels_page/panels_page.admin.inc \panels_page_disable_page()
Disable a default panel.
1 string reference to 'panels_page_disable_page'
- panels_page_menu in panels_page/
panels_page.module - Implementation of hook_menu().
File
- panels_page/
panels_page.admin.inc, line 125 - panels_page.admin.inc
Code
function panels_page_disable_page($name = NULL) {
$defaults = panels_page_default_panels();
if (isset($defaults[$name])) {
$status = variable_get('panel_page_defaults', array());
$status[$name] = TRUE;
variable_set('panel_page_defaults', $status);
drupal_set_message(t('Panel page disabled'));
menu_rebuild();
}
drupal_goto();
}