function shortcut_block_info

Implements hook_block_info().

File

modules/shortcut/shortcut.module, line 189

Code

function shortcut_block_info() {
    $blocks['shortcuts']['info'] = t('Shortcuts');
    // Shortcut blocks can't be cached because each menu item can have a custom
    // access callback. menu.inc manages its own caching.
    $blocks['shortcuts']['cache'] = DRUPAL_NO_CACHE;
    return $blocks;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.