1 entityreference.module entityreference_entityreference_selection_plugins()

Implements hook_entityreference_selection_plugins().

File

core/modules/entityreference/entityreference.module, line 1454
Entityreference primary module file.

Code

function entityreference_entityreference_selection_plugins() {
  $plugins['base'] = array(
    'title' => t('Simple (with optional filter by bundle)'),
    'class' => 'EntityReferenceSelectionHandlerGeneric',
    'weight' => -100,
  );
  if (module_exists('views')) {
    $plugins['views'] = array(
      'title' => t('Views: Filter by an entity reference view'),
      'class' => 'EntityReferenceSelectionHandlerViews',
      'weight' => 0,
    );
  }
  return $plugins;
}