function views_hook_info in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/views.module \views_hook_info()
Implements hook_hook_info().
File
- core/
modules/ views/ views.module, line 514 - Primarily Drupal hooks and global API functions to manipulate views.
Code
function views_hook_info() {
$hooks = array();
$hooks += array_fill_keys(array(
'views_data',
'views_data_alter',
'views_analyze',
'views_invalidate_cache',
), array(
'group' => 'views',
));
// Register a views_plugins alter hook for all plugin types.
foreach (ViewExecutable::getPluginTypes() as $type) {
$hooks['views_plugins_' . $type . '_alter'] = array(
'group' => 'views',
);
}
$hooks += array_fill_keys(array(
'views_query_substitutions',
'views_form_substitutions',
'views_pre_view',
'views_pre_build',
'views_post_build',
'views_pre_execute',
'views_post_execute',
'views_pre_render',
'views_post_render',
'views_query_alter',
), array(
'group' => 'views_execution',
));
$hooks['field_views_data'] = array(
'group' => 'views',
);
$hooks['field_views_data_alter'] = array(
'group' => 'views',
);
return $hooks;
}