function radioactivity_module_implements_alter in Radioactivity 4.0.x
Same name and namespace in other branches
- 8.3 radioactivity.module \radioactivity_module_implements_alter()
Implements hook_module_implements_alter().
File
- ./
radioactivity.module, line 131 - Provides a field type which can be used as a hotness metric.
Code
function radioactivity_module_implements_alter(&$implementations, $hook) {
if ($hook === 'entity_presave') {
// Make sure the radioactivity's entity presave action occurs after the
// content moderation's entity presave action.
$group = $implementations['radioactivity'];
unset($implementations['radioactivity']);
$implementations['radioactivity'] = $group;
}
}