function radioactivity_module_implements_alter in Radioactivity 8.3
Same name and namespace in other branches
- 4.0.x radioactivity.module \radioactivity_module_implements_alter()
Implements hook_module_implements_alter().
File
- ./
radioactivity.module, line 123 - 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;
}
}