function menu_fields_field_ui_menu_load in Menu Item Fields 7
Menu loader; Load a field instance based on field and bundle name.
Parameters
string $field_name: The name of the field, as contained in the path.
string $entity_type: The name of the entity.
string $bundle_name: The name of the bundle, as contained in the path.
int $bundle_pos: The position of $bundle_name in $map.
object $map: The translated menu router path argument map.
Return value
array The field instance array.
File
- ./
menu_fields.module, line 431 - Main file contain hooks/functions.
Code
function menu_fields_field_ui_menu_load($field_name, $entity_type, $bundle_name, $bundle_pos, $map) {
$bundle_name = str_replace('-', '_', $bundle_name);
$map[$bundle_pos] = str_replace('-', '_', $map[$bundle_pos]);
return field_ui_menu_load($field_name, $entity_type, $bundle_name, $bundle_pos, $map);
}