function views_get_all_templates

cis7 views.module views_get_all_templates()
cle7 views.module views_get_all_templates()
elmsmedia7 views.module views_get_all_templates()
icor7 views.module views_get_all_templates()
meedjum_blog7 views.module views_get_all_templates()
mooc7 views.module views_get_all_templates()

Get all view templates.

Templates are special in-code views that are never active, but exist only to be cloned into real views as though they were templates.

3 calls to views_get_all_templates()
views_ui::add_template_page in sites/all/modules/ulmus/views/plugins/export_ui/views_ui.class.php
views_ui_add_template_page in sites/all/modules/ulmus/views/includes/admin.inc
views_ui_menu in sites/all/modules/ulmus/views/views_ui.module
Implements hook_menu().

File

sites/all/modules/ulmus/views/views.module, line 1342
Primarily Drupal hooks and global API functions to manipulate views.

Code

function views_get_all_templates() {
  $templates = array();
  $modules = views_module_include('views_template');

  foreach ($modules as $module => $info) {
    $function = $module . '_views_templates';
    if (function_exists($function)) {
      $new = $function();
      if ($new && is_array($new)) {
        $templates = array_merge($new, $templates);
      }
    }
  }

  return $templates;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.