You are here

function data_entity_menu_alter in Data 7

Implements hook_menu_alter().

File

data_entity/data_entity.module, line 155
data_entity.module TODO: Enter file description here.

Code

function data_entity_menu_alter(&$items) {

  // Attempt at fixing tab parentage for Field UI items.
  // @see data_entity_entity_info() for more details.
  $tables = data_entity_get_entity_tables();
  $info = array();

  /*
  // This breaks access on these menu items!
  foreach ($tables as $table_name => $table) {
    $field_ui_base_path = "admin/structure/data/edit/$table_name";
    foreach (array('fields', 'fields/%', 'display') as $path_suffix) {
      $items[$field_ui_base_path . '/' . $path_suffix]['tab_parent']  = 'admin/structure/data/edit/%';
      $items[$field_ui_base_path . '/' . $path_suffix]['tab_root']    = 'admin/structure/data/edit/%';
    }
  }
  */
}