function oa_related_get_paragraph_field_info in Open Atrium Related Content 7.2
Helper function used to cache data returned by hook_oa_related_field_info().
Return value
array
2 calls to oa_related_get_paragraph_field_info()
- oa_related_paragraphs_field_allowed_values in ./
oa_related.module - Helper function to define allowed values for fields on a paragraph entity used to control the layout.
- oa_related_preprocess_entity in ./
oa_related.module - Implements hook_preprocess_HOOK().
File
- ./
oa_related.module, line 641
Code
function oa_related_get_paragraph_field_info() {
$info =& drupal_static(__FUNCTION__);
if (empty($info)) {
$cache = cache_get(__FUNCTION__);
if (!$cache) {
// Get information from all modules about this field. The field name does matter, there could be two fields on the
// same bundle that allow different options.
$info = module_invoke_all('oa_related_field_info');
drupal_alter('oa_related_field_info', $info);
return $info;
}
else {
if (!empty($cache->data)) {
return $cache->data;
}
}
}
return $info;
}