Switch the remaining 'uses FOO' to 'uses_FOO'.

8.0.x
Tim Plunkett 2012-08-13 14:39:47 -04:00
parent c8b122ee90
commit a1e6b28098
3 changed files with 5 additions and 5 deletions

View File

@ -681,7 +681,7 @@ class ArgumentPluginBase extends Handler {
);
foreach ($summary_plugins as $id => $info) {
if (empty($info['uses options'])) {
if (empty($info['uses_options'])) {
continue;
}
$plugin = $this->get_plugin('style', $id);

View File

@ -67,7 +67,7 @@ abstract class StylePluginBase extends ViewsPlugin {
);
$this->definition += array(
'uses grouping' => TRUE,
'uses_grouping' => TRUE,
);
}
@ -191,7 +191,7 @@ abstract class StylePluginBase extends ViewsPlugin {
// themselves from being groupable by setting their "use grouping" definiton
// key to FALSE.
// @TODO: Document "uses grouping" in docs.php when docs.php is written.
if ($this->uses_fields() && $this->definition['uses grouping']) {
if ($this->uses_fields() && $this->definition['uses_grouping']) {
$options = array('' => t('- None -'));
$field_labels = $this->display->handler->get_field_labels(TRUE);
$options += $field_labels;

View File

@ -247,7 +247,7 @@
* 'path' => drupal_get_path('module', 'views') . '/modules/node', // not necessary for most modules
* 'theme' => 'views_view_row_node',
* 'base' => array('node'), // only works with 'node' as base.
* 'uses options' => TRUE,
* 'uses_options' => TRUE,
* 'type' => 'normal',
* ),
* @endcode
@ -537,7 +537,7 @@ function hook_views_data_alter(&$data) {
* perspective.
* - no_ui: Set to TRUE to denote that the plugin doesn't appear to be
* selectable in the ui, though on the api side they still exists.
* - uses options: Set to TRUE to denote that the plugin has an additional
* - uses_options: Set to TRUE to denote that the plugin has an additional
* options form.
* - help: A short help text, wrapped in t() used as description on the plugin settings form.
* - help topic: The name of an entry by advanced help for the plugin.