You are here

function panels_mini_disable_page in Panels 5.2

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

File

panels_mini/panels_mini.module, line 712
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();
}