function shortcut_block_view

Implements hook_block_view().

File

drupal/core/modules/shortcut/shortcut.module, line 200
Allows users to manage customizable lists of shortcut links.

Code

function shortcut_block_view($delta = '') {
  if ($delta == 'shortcuts') {
    $shortcut_set = shortcut_current_displayed_set();
    $data['subject'] = t('@shortcut_set shortcuts', array(
      '@shortcut_set' => $shortcut_set->title,
    ));
    $data['content'] = shortcut_renderable_links($shortcut_set);
    return $data;
  }
}