function paragraphs_module_implements_alter in Paragraphs 7
Same name and namespace in other branches
- 8 paragraphs.module \paragraphs_module_implements_alter()
Implements hook_module_implements_alter().
File
- ./
paragraphs.module, line 1374 - Paragraphs hooks and common functions.
Code
function paragraphs_module_implements_alter(&$implementations, $hook) {
switch ($hook) {
case 'field_attach_form':
// We put the implementation of field_attach_form implementation of
// paragraphs at the end, so it has a chance to disable the implementation
// of entity_translation that provides the form changes that will break
// paragraphs.
$group = $implementations['paragraphs'];
unset($implementations['paragraphs']);
$implementations['paragraphs'] = $group;
break;
}
}