function lightning_workflow_module_implements_alter in Lightning Workflow 8.3
Same name and namespace in other branches
- 8 lightning_workflow.module \lightning_workflow_module_implements_alter()
- 8.2 lightning_workflow.module \lightning_workflow_module_implements_alter()
Implements hook_module_implements_alter().
File
- ./
lightning_workflow.module, line 173 - Provides workflow enhancements for Drupal.
Code
function lightning_workflow_module_implements_alter(array &$implementations, $hook) {
// We have to check for hook_node_view_alter() because of absolute insanity
// in ModuleHandler::alter() and the way it determines the implementations of
// 'secondary' alter hooks. It's weird logic that is pretty close to
// inexplicable...but trust me, to wrap around quickedit_entity_view_alter(),
// we need to alter the implementations of hook_node_view_alter(). Granted,
// this will only work for nodes. If we want to do this for another entity
// type, we'll have to check for its entity type-specific view_alter hook as
// well.
if ($hook == 'node_view_alter') {
unset($implementations['quickedit']);
}
}