class views_cumulus_summary_style_plugin in Cumulus 6.2
A tag-cloud summary style view.
Hierarchy
- class \views_cumulus_summary_style_plugin extends \views_plugin_style_summary
Expanded class hierarchy of views_cumulus_summary_style_plugin
1 string reference to 'views_cumulus_summary_style_plugin'
- cumulus_views_plugins in includes/
views/ cumulus.views.inc - Implementation of hook_views_plugins().
File
- includes/
views/ views_cumulus_summary_style_plugin.inc, line 6
View source
class views_cumulus_summary_style_plugin extends views_plugin_style_summary {
/**
* Set default options
*/
function option_definition() {
return cumulus_views_options();
}
/**
* Render the given style.
*/
function options_form(&$form, &$form_state) {
cumulus_views_options_form($form, $form_state, $this);
}
function render() {
foreach ($this->view->result as $row) {
$this->rendered_fields[] = array(
'link' => 'taxonomy/term/' . $row->term_node_tid,
'name' => $row->term_data_name,
'weight' => $row->num_records,
);
}
$output .= theme($this
->theme_functions(), $this->view, $this->options, $rows, $title);
return $output;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
views_cumulus_summary_style_plugin:: |
function | Render the given style. | ||
views_cumulus_summary_style_plugin:: |
function | Set default options | ||
views_cumulus_summary_style_plugin:: |
function |