Commit d0b4558f authored by Chi's avatar Chi Committed by Joel Muzzerall
Browse files

Issue #1935942 by Chi: Implemented hook_admin_menu_map()

parent f2faa90d
......@@ -1489,3 +1489,18 @@ function field_collection_devel_generate($object, $field, $instance, $bundle) {
function field_collection_hide_blank_items($field) {
return !empty($field['settings']['hide_blank_items']) && $field['cardinality'] == FIELD_CARDINALITY_UNLIMITED;
}
/**
* Implements hook_admin_menu_map().
*/
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;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment