You are here

function field_collection_admin_menu_map in Field collection 7

Implements hook_admin_menu_map().

File

./field_collection.module, line 2176
Module implementing field collection field type.

Code

function field_collection_admin_menu_map() {
  if (user_access('administer field collections')) {
    $map['admin/structure/field-collections/%field_collection_field_name'] = array(
      'parent' => 'admin/structure/field-collections',
      'arguments' => array(
        array(
          '%field_collection_field_name' => array_keys(field_read_fields(array(
            'type' => 'field_collection',
          ))),
        ),
      ),
    );
    return $map;
  }
}