Commit ebaa0f1c authored by tim.plunkett's avatar tim.plunkett

Miscellaneous code clean-ups.

parent c29f2e2d
......@@ -312,8 +312,6 @@ div.form-item-options-value-all {
/* @end */
/* @group Javascript dependent styling */
.js-only {
......
......@@ -255,7 +255,6 @@ function views_development_settings() {
drush_log($message, 'success');
}
/**
* Callback function for views-list command.
*/
......
......@@ -276,7 +276,6 @@ function views_ajax_form_wrapper($form_id, &$form_state) {
return $output;
}
/**
* Page callback for views user autocomplete
*/
......
......@@ -236,7 +236,6 @@ Drupal.viewsUi.addItemForm.prototype.handleCheck = function (event) {
this.refreshCheckedItems();
};
/**
* Refresh the display of the checked items.
*/
......@@ -249,7 +248,6 @@ Drupal.viewsUi.addItemForm.prototype.refreshCheckedItems = function() {
Drupal.viewsUi.resizeModal('', true);
};
/**
* The input field items that add displays must be rendered as <input> elements.
* The following behavior detaches the <input> elements from the DOM, wraps them
......@@ -318,7 +316,6 @@ Drupal.behaviors.viewsUiRenderAddViewButton.toggleMenu = function ($trigger) {
$trigger.next().slideToggle('fast');
};
Drupal.behaviors.viewsUiSearchOptions = {};
Drupal.behaviors.viewsUiSearchOptions.attach = function (context) {
......@@ -440,7 +437,6 @@ Drupal.viewsUi.OptionsSearch.prototype.handleKeyup = function (event) {
}
};
Drupal.behaviors.viewsUiPreview = {};
Drupal.behaviors.viewsUiPreview.attach = function (context, settings) {
......@@ -471,7 +467,6 @@ Drupal.behaviors.viewsUiPreview.attach = function (context, settings) {
}
};
Drupal.behaviors.viewsUiRearrangeFilter = {};
Drupal.behaviors.viewsUiRearrangeFilter.attach = function (context, settings) {
......@@ -763,7 +758,6 @@ Drupal.viewsUi.rearrangeFilterHandler.prototype.modifyTableDrag = function () {
};
};
/**
* Redraw the operator labels that are displayed next to each filter.
*/
......
<?php
/**
* @file
* Definition of Drupal\views\Plugin\query\QueryInterface.
*/
......
<?php
/**
* @file
* Definition of Drupal\views\Plugin\views\query\QueryPluginBase.
*/
......
......@@ -23,6 +23,7 @@
* )
*/
class Sql extends QueryPluginBase {
/**
* A list of tables in the order they should be added, keyed by alias.
*/
......
......@@ -7,6 +7,7 @@
namespace Drupal\views\TempStore;
/**
* Handles reading and writing to a non-volatile temporary storage area.
*
......
......@@ -18,6 +18,7 @@
* Check revisions
*/
class HandlerFieldFieldTest extends FieldTestBase {
public $nodes;
public static function getInfo() {
......
......@@ -13,6 +13,7 @@
* Tests the core Drupal\views\Plugin\views\argument\String handler.
*/
class ArgumentStringTest extends HandlerTestBase {
public static function getInfo() {
return array(
'name' => 'Argument: String',
......@@ -98,4 +99,5 @@ function viewGlossary() {
return $view;
}
}
<?php
/**
* @file
* Definition of Drupal\views\Tests\ViewStorageTest.
*/
......
<?php
/**
* @file
* Definition of Drupal\views\ViewStorageInterface.
*/
......
......@@ -10,7 +10,6 @@
use Drupal\views\Plugin\views\filter\Date;
use Drupal\Core\Annotation\Plugin;
/**
* Filter handler for the newer of last comment / node updated.
*
......
......@@ -54,7 +54,6 @@ function options_form(&$form, &$form_state) {
);
}
function pre_render($result) {
$cids = array();
$nids = array();
......@@ -92,7 +91,6 @@ function options_form_summary_options() {
return $options;
}
function render($row) {
global $base_url;
......
......@@ -68,7 +68,6 @@ function options_form(&$form, &$form_state) {
);
}
/**
* Return the main options, which are shown in the summary title.
*/
......
......@@ -58,7 +58,6 @@ function options_form(&$form, &$form_state) {
);
}
function summary_name($data) {
$value = $data->{$this->name_alias};
// If the list element has a human readable name show it,
......
......@@ -10,7 +10,6 @@
use Drupal\views\Plugin\views\argument\String;
use Drupal\Core\Annotation\Plugin;
/**
* Argument handler for list field to show the human readable name in the
* summary.
......
......@@ -10,7 +10,6 @@
use Drupal\Core\Annotation\Plugin;
use Drupal\views\Plugin\views\field\FieldPluginBase;
/**
* Field handler to provide simple renderer that allows linking to a file.
*
......
......@@ -2,7 +2,7 @@
/**
* @file
* Defintion of Views\node\Plugin\views\argument\UidRevision.
* Definition of Views\node\Plugin\views\argument\UidRevision.
*/
namespace Views\node\Plugin\views\argument;
......
......@@ -2,7 +2,7 @@
/**
* @file
* Defintion of Views\node\Plugin\views\field\Path.
* Definition of Views\node\Plugin\views\field\Path.
*/
namespace Views\node\Plugin\views\field;
......
......@@ -2,7 +2,7 @@
/**
* @file
* Contains the node RSS row style plugin.
* Definition of Views\node\Plugin\views\row\Rss.
*/
namespace Views\node\Plugin\views\row;
......@@ -82,7 +82,6 @@ function summary_title() {
return check_plain($options[$this->options['item_length']]);
}
function pre_render($values) {
$nids = array();
foreach ($values as $row) {
......
......@@ -71,7 +71,6 @@ public function getAvailableSorts() {
);
}
protected function row_style_options($type) {
$options = array();
$options['teasers'] = t('teasers');
......@@ -179,7 +178,6 @@ protected function default_display_filters_user($form, $form_state) {
return $filters;
}
protected function page_display_options($form, $form_state) {
$display_options = parent::page_display_options($form, $form_state);
$row_plugin = isset($form_state['values']['page']['style']['row_plugin']) ? $form_state['values']['page']['style']['row_plugin'] : NULL;
......
......@@ -2,7 +2,7 @@
/**
* @file
* Defintion of Views\search\Plugin\views\filter\Search.
* Definition of Views\search\Plugin\views\filter\Search.
*/
namespace Views\search\Plugin\views\filter;
......
......@@ -5,7 +5,6 @@
* Definition of Views\taxonomy\Plugin\views\argument_validator\Term.
*/
namespace Views\taxonomy\Plugin\views\argument_validator;
use Drupal\Core\Annotation\Plugin;
......
......@@ -5,7 +5,6 @@
* Definition of Views\taxonomy\Plugin\views\field\Taxonomy.
*/
namespace Views\taxonomy\Plugin\views\field;
use Drupal\views\Plugin\views\field\FieldPluginBase;
......
......@@ -213,7 +213,6 @@ function value_form(&$form, &$form_state) {
}
}
if (empty($form_state['exposed'])) {
// Retain the helper option
$this->helper->options_form($form, $form_state);
......
......@@ -5,7 +5,6 @@
* Definition of Views\taxonomy\Plugin\views\filter\TaxonomyIndexTidDepth.
*/
namespace Views\taxonomy\Plugin\views\filter;
use Drupal\Core\Annotation\Plugin;
......
......@@ -2,7 +2,7 @@
/**
* @file
* Defintion of Views\user\Plugin\views\row\View
* Definition of Views\user\Plugin\views\row\View
*/
namespace Views\user\Plugin\views\row;
......@@ -53,7 +53,6 @@ function options_form(&$form, &$form_state) {
$form['help']['#markup'] = t("Display the user with standard user view. It might be necessary to add a user-profile.tpl.php in your themes template folder, because the default <a href=\"@user-profile-api-link\">user-profile</a>e template don't show the username per default.", array('@user-profile-api-link' => url('http://api.drupal.org/api/drupal/modules--user--user-profile.tpl.php/7')));
}
/**
* Return the main options, which are shown in the summary title.
*/
......
......@@ -167,7 +167,6 @@ function aggregator_views_data() {
),
);
// ----------------------------------------------------------------------
// Aggregator feed table
......
......@@ -164,7 +164,6 @@ function comment_views_data() {
),
);
// Langcode field
if (module_exists('language')) {
$data['comment']['language']['moved to'] = array('comment', 'langcode');
......@@ -305,7 +304,6 @@ function comment_views_data() {
),
);
// link to approve comment
$data['comment']['approve_comment'] = array(
'field' => array(
......
......@@ -273,7 +273,6 @@ function field_views_field_default_views_data($field) {
break;
}
if (count($field['columns']) == 1 || $column == 'value') {
$title = t('@label (!name)', array('@label' => $label, '!name' => $field['field_name']));
// CCK used the first 10 characters of $label. Probably doesn't matter.
......
......@@ -281,7 +281,6 @@ function node_views_data() {
),
);
// Bogus fields for aliasing purposes.
$data['node']['created_fulldate'] = array(
......
......@@ -77,7 +77,6 @@ function statistics_views_data() {
),
);
// ----------------------------------------------------------------
// accesslog table
......@@ -258,6 +257,5 @@ function statistics_views_data() {
),
);
return $data;
}
......@@ -116,8 +116,6 @@ function taxonomy_views_data() {
);
$data['taxonomy_term_data']['table']['entity type'] = 'taxonomy_term';
// The term data table
$data['taxonomy_term_data']['table']['join'] = array(
'taxonomy_vocabulary' => array(
......
......@@ -117,5 +117,4 @@ function translation_views_data_alter(&$data) {
),
);
}
......@@ -26,7 +26,6 @@ function user_views_data() {
);
$data['users']['table']['entity type'] = 'user';
$data['users']['table']['default_relationship'] = array(
'node' => array(
'table' => 'node',
......
......@@ -193,7 +193,6 @@ function list_sort_options() {
);
}
function list_build_row($view, &$form_state, $operations) {
if (!empty($view->human_name)) {
$title = $view->human_name;
......
......@@ -21,6 +21,7 @@
* )
*/
class DynamicTest extends AccessPluginBase {
function option_definition() {
$options = parent::option_definition();
$options['access'] = array('default' => FALSE, 'bool' => TRUE);
......@@ -35,4 +36,5 @@ function access($account) {
function get_access_callback() {
return array('views_test_test_dynamic_access_callback', array(!empty($options['access']), 1, 2));
}
}
......@@ -21,6 +21,7 @@
* )
*/
class StaticTest extends AccessPluginBase {
function option_definition() {
$options = parent::option_definition();
$options['access'] = array('default' => FALSE, 'bool' => TRUE);
......@@ -35,4 +36,5 @@ function access($account) {
function get_access_callback() {
return array('views_test_test_static_access_callback', array(!empty($options['access'])));
}
}
......@@ -22,6 +22,7 @@
* )
*/
class LocalizationTest extends LocalizationPluginBase {
/**
* Store the strings which was translated.
*/
......@@ -50,4 +51,5 @@ function export($source) {
function get_export_strings() {
return $this->export_strings;
}
}
......@@ -639,7 +639,6 @@ function template_preprocess_views_view_table(&$vars) {
$vars['field_classes'][0][0] = 'views-empty';
}
if (!empty($options['sticky'])) {
drupal_add_js('misc/tableheader.js');
$vars['attributes']['class'][] = "sticky-enabled";
......@@ -1030,8 +1029,6 @@ function theme_views_mini_pager($vars) {
$pager_max = $pager_total[$element];
// End of marker calculations.
if ($pager_total[$element] > 1) {
$li_previous = theme('pager_previous',
......
......@@ -506,7 +506,6 @@ function hook_views_data_alter(&$data) {
// Note that the $data array is not returned – it is modified by reference.
}
/**
* Describes plugins defined by the module.
*
......
......@@ -1472,7 +1472,6 @@ function views_get_enabled_display_extenders() {
return array_filter($enabled);
}
// -----------------------------------------------------------------------
// Views database functions
......@@ -2108,7 +2107,6 @@ function views_exposed_form_submit(&$form, &$form_state) {
$form_state['view']->exposed_data = $form_state['values'];
$form_state['view']->exposed_raw_input = array();
$exclude = array('submit', 'form_build_id', 'form_id', 'form_token', 'exposed_form_plugin', '', 'reset');
$exposed_form_plugin = $form_state['exposed_form_plugin'];
$exposed_form_plugin->exposed_form_submit($form, $form_state, $exclude);
......
......@@ -230,7 +230,6 @@ function views_ui_theme() {
'file' => 'includes/admin.inc',
),
// On behalf of a plugin
'views_ui_style_plugin_table' => array(
'render element' => 'form',
......@@ -350,7 +349,6 @@ function views_ui_cache_set(&$view) {
views_temp_store()->set($view->name, $view);
}
/**
* Specialized menu callback to load a view that is only a default
* view.
......@@ -534,7 +532,6 @@ function views_ui_view_preview_section_rows_links($view) {
return $links;
}
/**
* Implments hook_ctools_plugin_directory().
*
......@@ -752,7 +749,6 @@ function views_ui_ajax_get_form($form_id) {
}
// @todo move these when we can
/**
* Helper function to get a list of paths assigned to a view.
*
......
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