1 entityreference.module | entityreference_entityreference_behavior_plugins() |
Implements hook_entityreference_behavior_plugins().
File
- core/
modules/ entityreference/ entityreference.module, line 1429 - Entityreference primary module file.
Code
function entityreference_entityreference_behavior_plugins() {
$plugins = array();
if (module_exists('taxonomy')) {
$plugins['taxonomy'] = array(
'title' => t('Taxonomy index'),
'description' => t('Include the term references created by instances of this field carried by node entities in the core {taxonomy_index} table. This will allow various modules to handle them like core term_reference fields.'),
'class' => 'EntityReferenceBehaviorHandlerTaxonomyIndex',
'behavior type' => 'instance',
'force enabled' => TRUE,
);
}
if (module_exists('views')) {
$plugins['views'] = array(
'title' => t('Render Views filters as select list'),
'description' => t('Provides a select list for Views filters on this field. This should not be used when there are over 100 entities, as it might cause an out of memory error.'),
'class' => 'EntityReferenceBehaviorHandlerViewsFilterSelect',
'behavior type' => 'field',
);
}
return $plugins;
}