function views_ui_theme

Same name in other branches
  1. 6.x-3.x views_ui.module \views_ui_theme()

Implements hook_theme().

File

./views_ui.module, line 195

Code

function views_ui_theme() {
    $path = drupal_get_path('module', 'views');
    require_once DRUPAL_ROOT . "/{$path}/includes/admin.inc";
    return array(
        // Edit a view.
'views_ui_display_tab_setting' => array(
            'variables' => array(
                'description' => '',
                'link' => '',
                'settings_links' => array(),
                'overridden' => FALSE,
                'defaulted' => FALSE,
                'description_separator' => TRUE,
                'class' => array(),
            ),
            'template' => 'views-ui-display-tab-setting',
            'path' => "{$path}/theme",
        ),
        'views_ui_display_tab_bucket' => array(
            'render element' => 'element',
            'template' => 'views-ui-display-tab-bucket',
            'path' => "{$path}/theme",
        ),
        'views_ui_rearrange_form' => array(
            'render element' => 'form',
        ),
        'views_ui_rearrange_filter_form' => array(
            'render element' => 'form',
            'file' => 'includes/admin.inc',
        ),
        'views_ui_expose_filter_form' => array(
            'render element' => 'form',
            'file' => 'includes/admin.inc',
        ),
        // List views.
'views_ui_view_info' => array(
            'variables' => array(
                'view' => NULL,
                'base' => NULL,
            ),
            'file' => "includes/admin.inc",
        ),
        // Group of filters.
'views_ui_build_group_filter_form' => array(
            'render element' => 'form',
            'file' => 'includes/admin.inc',
        ),
        // Tab themes.
'views_tabset' => array(
            'variables' => array(
                'tabs' => NULL,
            ),
        ),
        'views_tab' => array(
            'variables' => array(
                'body' => NULL,
            ),
        ),
        'views_ui_reorder_displays_form' => array(
            'render element' => 'form',
            'file' => 'includes/admin.inc',
        ),
        // On behalf of a plugin.
'views_ui_style_plugin_table' => array(
            'render element' => 'form',
        ),
        // When previewing a view.
'views_ui_view_preview_section' => array(
            'variables' => array(
                'view' => NULL,
                'section' => NULL,
                'content' => NULL,
                'links' => '',
            ),
        ),
        // Generic container wrapper, to use instead of theme_container when an id
        // is not desired.
'views_container' => array(
            'render element' => 'element',
            'file' => 'theme/theme.inc',
        ),
    );
}