Contributions API

views.module

Version

1.252 (checked in on 2008/04/12 at 20:49:41 by merlinofchaos)

Description

Primarily Drupal hooks and global API functions to manipulate views.

This is the main module file for Views. The main entry points into this module are views_page() and views_block(), where it handles incoming page and block requests.

Functions

Namesort iconDescription
drupal_build_formViews' replacement for drupal_get_form so that we can do more with less.
views_accessDetermine if the given user has access to the view + display.
views_add_cssInclude views .css files.
views_add_jsInclude views .js files.
views_ajaxMenu callback to load a view via AJAX.
views_arg_loadHelper function for menu loading. This will automatically be called in order to 'load' a views argument; primarily it will be used to perform validation.
views_blockImplementation of hook_block
views_css_safePrepare the specified string for use as a CSS identifier.
views_date_sql_extractHelper function to create cross-database SQL date extraction.
views_date_sql_fieldHelper function to create cross-database SQL dates.
views_date_sql_formatHelper function to create cross-database SQL date formatting.
views_debugProvide debug output for Views. This relies on devel.module
views_discover_default_viewsScan all modules for default views and rebuild the default views cache.
views_exposed_formForm builder for the exposed widgets form.
views_exposed_form_submitSubmit handler for exposed filters
views_exposed_form_validateValidate handler for exposed filters
views_fetch_base_table_namesFetch a list of all base tables available
views_fetch_dataFetch Views' data from the cache
views_fetch_field_namesFetch a list of all base tables available
views_fetch_plugin_dataFetch the plugin data from cache.
views_fetch_plugin_namesFetch a list of all base tables available
views_flush_cachesImplementation of hook_devel_caches().
views_get_all_viewsReturn an array of all views as fully loaded $view objects.
views_get_applicable_viewsReturn a list of all views and display IDs that have a particular setting in their display's plugin settings.
views_get_block_viewsGet a list of all views and the display plugins that provide themselves to the Drupal block system. Since views can appear in this list multiple times, the return of this function is an array of arrays.
views_get_handlerFetch a handler from the data cache.
views_get_page_viewsGet a list of all views and the display plugins that provide page support to the Drupal menu system. Since views can appear in this list multiple times, the return of this function is an array of arrays.
views_get_pluginGet a handler for a plugin
views_get_timezoneFigure out what timezone we're in; needed for some date manipulations.
views_get_viewGet a view from the database or from default views.
views_helpImplementation of hook_help().
views_includeInclude views .inc files as necessary.
views_include_default_viewsLoad default views files on behalf of modules.
views_include_handlersLoad views files on behalf of modules.
views_invalidate_cacheInvalidate the views cache, forcing a rebuild on the next grab of table data.
views_menuImplementation of hook_menu().
views_menu_alterImplementation of hook_menu_alter().
views_module_includeLoad views files on behalf of modules.
views_new_viewCreate an empty view to work with.
views_pagePage callback entry point; requires a view and a display id, then passes control to the display handler.
views_themeImplementation of hook_theme(). Register views theming functions.
views_theme_functionsBuild a list of theme function names for use most everywhere.
views_trace
views_views_query_substitutionsSubstitute current time; this works with cached queries.
vprShortcut to views_debug()
vpr_trace
vsmDebug messages
vsm_trace
_views_weight_sort