function dynamic_entity_reference_module_implements_alter in Dynamic Entity Reference 8.2
Same name and namespace in other branches
- 8 dynamic_entity_reference.module \dynamic_entity_reference_module_implements_alter()
Implements hook_module_implements_alter().
File
- ./
dynamic_entity_reference.module, line 98 - Contains main module functionality.
Code
function dynamic_entity_reference_module_implements_alter(&$implementations, $hook) {
if ($hook == 'field_config_presave') {
// We have to go after field_field_config_presave().
$group = $implementations['dynamic_entity_reference'];
unset($implementations['dynamic_entity_reference']);
// Remove the field implementation, we have a fallback in our hook.
unset($implementations['field']);
$implementations['dynamic_entity_reference'] = $group;
}
}