You are here

function panels_mini_enable_page in Panels 6.2

Same name and namespace in other branches
  1. 5.2 panels_mini/panels_mini.module \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.admin.inc
Implementation of hook_menu().

File

panels_mini/panels_mini.admin.inc, line 631
Administrative items for the 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();
}