summaryrefslogtreecommitdiff
path: root/sites/all/modules/views_custom_template/views_custom_template.views.inc
blob: e1e31b4e7e18ea5068c1914decd6bb1f8714941a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php

/**
 * @file
 * Views hooks for this module.
 *
 * Defines a display extender to add settings without creating a style plugin.
 */

/**
 * Implements hook_views_plugins().
 */
function views_custom_template_views_plugins() {
  return array(
    // This just tells our themes are elsewhere.
    'module' => 'views',
    // Display settings
    'display_extender' => array(
      // Default settings for all display_extender plugins.
      'template_suggestion' => array(
        'title' => t('Template suggestion'),
        'help' => t('Default settings for this view.'),
        'handler' => 'views_plugin_display_custom_template',
        // You can force the plugin to be enabled
        'enabled' => TRUE,
        'no ui' => FALSE,
      ),
    ),
  );
}