function paragraphs_ee_sets_module_implements_alter in Paragraphs Editor Enhancements 8
Implements hook_module_implements_alter().
For some strange reasons the implementation of hook_field_widget_multivalue_form_alter() is called before the implementation in paragraphs_sets.module (even the weight of paragraphs_ee_sets is higher).
File
- modules/
paragraphs_ee_sets/ paragraphs_ee_sets.module, line 34 - Main functions for "Paragraphs Sets Editor Enhancements" module.
Code
function paragraphs_ee_sets_module_implements_alter(&$implementations, $hook) {
if ($hook == 'field_widget_multivalue_form_alter') {
// Move paragraphs_ee_sets_field_widget_multivalue_form_alter() to the end
// of the list.
$group = $implementations['paragraphs_ee_sets'];
unset($implementations['paragraphs_ee_sets']);
$implementations['paragraphs_ee_sets'] = $group;
}
}