function menu_block_get_pane_links_alter in Menu Block 7.3
Same name and namespace in other branches
- 7.2 menu_block.module \menu_block_get_pane_links_alter()
 
Implements hook_get_pane_links_alter().
File
- ./
menu_block.module, line 914  - Provides configurable blocks of menu items.
 
Code
function menu_block_get_pane_links_alter(&$links, $pane, $content_type) {
  if ($pane->type === 'menu_tree') {
    if (in_array($pane->subtype, array_keys(menu_get_menus()))) {
      $links['top'][] = array(
        'title' => t('Edit menu links'),
        'href' => url('admin/structure/menu/manage/' . $pane->subtype, array(
          'absolute' => TRUE,
        )),
        'attributes' => array(
          'target' => array(
            '_blank',
          ),
        ),
      );
    }
  }
}