function lightning_workflow_theme_registry_alter in Lightning Workflow 8.2
Same name and namespace in other branches
- 8.3 lightning_workflow.module \lightning_workflow_theme_registry_alter()
- 8 lightning_workflow.module \lightning_workflow_theme_registry_alter()
Implements hook_theme_registry_alter().
File
- ./
lightning_workflow.module, line 60 - Provides workflow enhancements for Drupal.
Code
function lightning_workflow_theme_registry_alter(array &$theme_registry) {
foreach ($theme_registry as $hook => &$info) {
if ($hook == 'field' || isset($info['base hook']) && $info['base hook'] == 'field') {
// We wrap around Quick Edit's preprocess function, so it should not be
// run directly.
$info['preprocess functions'] = array_diff($info['preprocess functions'], [
'quickedit_preprocess_field',
]);
}
}
}