public static function CerField::getPluginInfo in Corresponding Entity References 7.3
Returns information about a particular field plugin by its identifier, or all available plugins (i.e., defined by hook_cer_fields()) if no identifier is given. The aggregated result of hook_cer_fields() is statically cached.
2 calls to CerField::getPluginInfo()
- CerField::getPlugin in includes/
CerField.inc - Returns a single field plugin instance, by its identifier. All plugin instances are statically cached.
- CerFieldChain::collectAll in includes/
CerFieldChain.inc - Returns an array of every possible field chain for every field defined in hook_cer_fields().
File
- includes/
CerField.inc, line 105 - Contains the base class for CER field plugins.
Class
- CerField
- @class Represents a single field instance.
Code
public static function getPluginInfo($identifier = NULL) {
$info =& drupal_static(__METHOD__);
if (!isset($info)) {
$info = module_invoke_all('cer_fields');
foreach ($info as $key => &$field) {
$field += array(
'identifier' => $key,
'parents' => array(),
'require parent' => FALSE,
'handler' => 'CerFieldHandler',
);
}
drupal_alter('cer_fields', $info);
}
return $identifier ? isset($info[$identifier]) ? $info[$identifier] : NULL : $info;
}