You are here

function checklistapi_compact_page in Checklist API 7

Menu callback: Sets whether the admin menu is in compact mode or not.

Parameters

string $mode: (optional) The mode to set compact mode to. Accepted values are "on" and "off". Defaults to "off".

1 string reference to 'checklistapi_compact_page'
checklistapi_menu in ./checklistapi.module
Implements hook_menu().

File

./checklistapi.pages.inc, line 220
Page callbacks for the Checklist API module.

Code

function checklistapi_compact_page($mode = 'off') {
  user_cookie_save(array(
    'checklistapi_compact_mode' => $mode == 'on',
  ));
  drupal_goto();
}