function panels_mini_disable_page in Panels 6.2
Same name and namespace in other branches
- 5.2 panels_mini/panels_mini.module \panels_mini_disable_page()
Disable a default mini panel.
1 string reference to 'panels_mini_disable_page'
- _panels_mini_menu in panels_mini/
panels_mini.admin.inc - Implementation of hook_menu().
File
- panels_mini/
panels_mini.admin.inc, line 645 - Administrative items for the panels mini module.
Code
function panels_mini_disable_page($name = NULL) {
$defaults = panels_mini_default_panels();
if (isset($defaults[$name])) {
$status = variable_get('panel_mini_defaults', array());
$status[$name] = TRUE;
variable_set('panel_mini_defaults', $status);
drupal_set_message(t('Panel mini disabled'));
}
drupal_goto();
}