You are here

function collapsiblock_menu in Javascript Tools 5

Implementation of hook_menu().

File

collapsiblock/collapsiblock.module, line 11
Make blocks collapsible.

Code

function collapsiblock_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/collapsiblock',
      'title' => t('Collapsiblock'),
      'description' => t('Configuration for collapsible blocks'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'collapsiblock_admin_settings',
      ),
    );
  }
  else {
    collapsiblock_load();
  }
  return $items;
}