views_complex_grouping.module in Views Complex Grouping 7
Same filename and directory in other branches
Declaring Views dependancy.
File
views_complex_grouping.moduleView source
<?php
/**
* @file
* Declaring Views dependancy.
*/
/**
* Implementation of hook_views_api().
*/
function views_complex_grouping_views_api() {
return array(
'api' => 3,
);
}
/**
* Implements hook_theme().
*/
function views_complex_grouping_theme($existing, $type, $theme, $path) {
return array(
'views_complex_grouping_level' => array(
'variables' => array(
'view' => NULL,
'grouping' => NULL,
'grouping_branch' => NULL,
'grouping_level' => NULL,
'rows' => array(),
'content' => NULL,
'title' => '',
'fields' => array(),
),
'template' => 'views_complex_grouping_level',
),
);
}
/**
* Implementation of template_process for views_complex_grouping_level.tpl.php.
*/
function template_preprocess_views_complex_grouping_level(&$vars) {
$vars['content'] = $vars['view']->style_plugin
->render_grouping_sets($vars['rows'], $vars['grouping_level']);
}
Functions
Name | Description |
---|---|
template_preprocess_views_complex_grouping_level | Implementation of template_process for views_complex_grouping_level.tpl.php. |
views_complex_grouping_theme | Implements hook_theme(). |
views_complex_grouping_views_api | Implementation of hook_views_api(). |