You are here

function multifield_admin_menu_map in Multifield 7

Same name and namespace in other branches
  1. 7.2 multifield.module \multifield_admin_menu_map()

Implements hook_admin_menu_map().

File

./multifield.module, line 621

Code

function multifield_admin_menu_map() {
  if (!user_access('administer multifield')) {
    return;
  }
  $multifields = multifield_load_all();
  $map['admin/structure/multifield/manage/%multifield'] = array(
    'parent' => 'admin/structure/multifield',
    'arguments' => array(
      array(
        '%multifield' => array_keys($multifields),
      ),
    ),
  );
  return $map;
}