Commit e00a3647 authored by merlinofchaos's avatar merlinofchaos

styles were using wrong method of finding help topic.

parent b2a76743
......@@ -98,6 +98,7 @@ function views_views_plugins() {
'uses options' => TRUE,
'uses grouping' => TRUE,
'type' => 'normal',
'help topic' => 'style-unformatted',
),
'list' => array(
'title' => t('List'),
......@@ -107,6 +108,7 @@ function views_views_plugins() {
'uses row plugin' => TRUE,
'uses options' => TRUE,
'type' => 'normal',
'help topic' => 'style-list',
),
'grid' => array(
'title' => t('Grid'),
......@@ -116,6 +118,7 @@ function views_views_plugins() {
'uses row plugin' => TRUE,
'uses options' => TRUE,
'type' => 'normal',
'help topic' => 'style-grid',
),
'table' => array(
'title' => t('Table'),
......@@ -126,6 +129,7 @@ function views_views_plugins() {
'uses fields' => TRUE,
'uses options' => TRUE,
'type' => 'normal',
'help topic' => 'style-table',
),
'default_summary' => array(
'title' => t('List'),
......@@ -134,6 +138,7 @@ function views_views_plugins() {
'theme' => 'views_view_summary',
'type' => 'summary', // only shows up as a summary style
'uses options' => TRUE,
'help topic' => 'style-summary',
),
'unformatted_summary' => array(
'title' => t('Unformatted'),
......@@ -143,6 +148,7 @@ function views_views_plugins() {
'theme' => 'views_view_summary_unformatted',
'type' => 'summary', // only shows up as a summary style
'uses options' => TRUE,
'help topic' => 'style-summary-unformatted',
),
'rss' => array(
'title' => t('RSS Feed'),
......@@ -152,6 +158,7 @@ function views_views_plugins() {
'uses row plugin' => TRUE,
'uses options' => TRUE,
'type' => 'feed',
'help topic' => 'style-rss',
),
),
'row' => array(
......@@ -170,6 +177,7 @@ function views_views_plugins() {
'uses fields' => TRUE,
'uses options' => TRUE,
'type' => 'normal',
'help topic' => 'style-row-fields',
),
),
'argument default' => array(
......
......@@ -389,6 +389,7 @@ function comment_views_plugins() {
'base' => array('comments'), // only works with 'comment' as base.
'uses options' => TRUE,
'type' => 'normal',
'help topic' => 'style-comment',
),
'comment_rss' => array(
'title' => t('Comment'),
......@@ -397,6 +398,7 @@ function comment_views_plugins() {
'path' => drupal_get_path('module', 'views') . '/modules/comment', // not necessary for most modules
'base' => array('comments'), // only works with 'comment' as base.
'type' => 'feed',
'help topic' => 'style-comment-rss',
),
),
);
......
......@@ -648,6 +648,7 @@ function node_views_plugins() {
'base' => array('node'), // only works with 'node' as base.
'uses options' => TRUE,
'type' => 'normal',
'help topic' => 'style-node',
),
'node_rss' => array(
'title' => t('Node'),
......@@ -657,6 +658,7 @@ function node_views_plugins() {
'base' => array('node'), // only works with 'node' as base.
'uses options' => TRUE,
'type' => 'feed',
'help topic' => 'style-node-rss',
),
),
'argument validator' => array(
......
......@@ -953,7 +953,6 @@ class views_plugin_display extends views_plugin {
if (!isset($name)) {
$name = $this->get_option('row_plugin');
}
$form['#help_topic'] = 'style-' . $name;
// if row, $style will be empty.
if (empty($style)) {
$form['#title'] .= t('Row style options');
......@@ -961,6 +960,9 @@ class views_plugin_display extends views_plugin {
}
$plugin = $this->get_plugin(empty($style) ? 'row' : 'style');
if ($plugin) {
if (isset($plugin->definition['help topic'])) {
$form['#help_topic'] = $plugin->definition['help topic'];
}
$form[$form_state['section']] = array(
'#tree' => TRUE,
);
......@@ -1464,7 +1466,7 @@ class views_plugin_display extends views_plugin {
}
/**
* Render a text area, using hte proper format.
* Render a text area, using the proper format.
*/
function render_textarea($area) {
$value = $this->get_option($area);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment