function hook_views_default_views_alter in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 6.3 docs/docs.php \hook_views_default_views_alter()
- 7.3 views.api.php \hook_views_default_views_alter()
This hook is called right before all default views are cached to the database. It takes a keyed array of views by reference.
Related topics
1 invocation of hook_views_default_views_alter()
- _views_discover_default_views in includes/
cache.inc - Scan all modules for default views and rebuild the default views cache.
File
- docs/
docs.php, line 549 - This file contains no working PHP code; it exists to provide additional documentation for doxygen as well as to document hooks in the standard Drupal manner.
Code
function hook_views_default_views_alter(&$views) {
if (isset($views['taxonomy_term'])) {
$views['taxonomy_term']
->set_display('default');
$views['taxonomy_term']->display_handler
->set_option('title', 'Categories');
}
}