function panels_mini_enable_page in Panels 5.2
Same name and namespace in other branches
- 6.2 panels_mini/panels_mini.admin.inc \panels_mini_enable_page()
Enable a default mini panel.
1 string reference to 'panels_mini_enable_page'
- panels_mini_menu in panels_mini/
panels_mini.module - Implementation of hook_menu().
File
- panels_mini/
panels_mini.module, line 698 - panels_mini.module
Code
function panels_mini_enable_page($name = NULL) {
$defaults = panels_mini_default_panels();
if (isset($defaults[$name])) {
$status = variable_get('panel_mini_defaults', array());
$status[$name] = FALSE;
variable_set('panel_mini_defaults', $status);
drupal_set_message(t('Panel mini enabled'));
}
drupal_goto();
}