function node_reference_crumbs_plugins in Crumbs, the Breadcrumbs suite 7.2
Implements hook_crumbs_plugins().
Parameters
crumbs_InjectedAPI_hookCrumbsPlugins $api:
File
- plugins/
crumbs.node_reference.inc, line 8
Code
function node_reference_crumbs_plugins($api) {
foreach (field_info_fields() as $field_name => $field_info) {
if (1 && 'node_reference' === $field_info['type'] && '1' === '' . $field_info['cardinality']) {
$plugin = new crumbs_EntityPlugin_Field_NodeReference($field_name, $field_info['bundles']);
$api
->entityParentPlugin($field_name, $plugin, array_keys($field_info['bundles']));
}
}
$api
->disabledByDefault('*');
}