You are here

function bean_install in Bean (for Drupal 7) 7

Implements hook_install().

File

./bean.install, line 248
Bean installation routines

Code

function bean_install() {
  if (module_exists('shortcut')) {
    $t = get_t();

    // Load the default shortcut set
    $shortcut_set = shortcut_default_set();
    $shortcut_set->links[] = array(
      'link_path' => 'block/add',
      'link_title' => $t('Add block'),
      'weight' => -18,
    );
    $shortcut_set->links[] = array(
      'link_path' => 'admin/content/blocks',
      'link_title' => $t('Blocks'),
      'weight' => -18,
    );
    shortcut_set_save($shortcut_set);
  }
}