/[drupal]/drupal/modules/menu/menu.module
ViewVC logotype

Diff of /drupal/modules/menu/menu.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.215, Fri Nov 6 03:17:59 2009 UTC revision 1.216, Sat Nov 7 13:35:20 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: menu.module,v 1.214 2009/11/01 12:11:10 dries Exp $  // $Id: menu.module,v 1.215 2009/11/06 03:17:59 webchick Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 430  function menu_block_view($delta = '') { Line 430  function menu_block_view($delta = '') {
430    $data['content'] = menu_tree($delta);    $data['content'] = menu_tree($delta);
431    // Add contextual links for this block.    // Add contextual links for this block.
432    if (!empty($data['content'])) {    if (!empty($data['content'])) {
433      $data['content']['#contextual_links']['menu'] = menu_contextual_links('admin/structure/menu/manage', array($delta));      $data['content']['#contextual_links']['menu'] = array('admin/structure/menu/manage', array($delta));
434    }    }
435    return $data;    return $data;
436  }  }
# Line 443  function menu_block_view_alter(&$data, $ Line 443  function menu_block_view_alter(&$data, $
443    if ($block->module == 'system' && !empty($data['content'])) {    if ($block->module == 'system' && !empty($data['content'])) {
444      $system_menus = menu_list_system_menus();      $system_menus = menu_list_system_menus();
445      if (isset($system_menus[$block->delta])) {      if (isset($system_menus[$block->delta])) {
446        $data['content']['#contextual_links']['menu'] = menu_contextual_links('admin/structure/menu/manage', array($block->delta));        $data['content']['#contextual_links']['menu'] = array('admin/structure/menu/manage', array($block->delta));
447      }      }
448    }    }
449  }  }

Legend:
Removed from v.1.215  
changed lines
  Added in v.1.216

  ViewVC Help
Powered by ViewVC 1.1.2