Skip to content
Snippets Groups Projects
Commit da83b1ab authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2003356 by phenaproxima, jibran, drupalway, Dan Reinders: Rename Views...

Issue #2003356 by phenaproxima, jibran, drupalway, Dan Reinders: Rename Views method process_summary_arguments() to processSummaryArguments().
parent 5bf482fc
No related branches found
No related tags found
No related merge requests found
......@@ -182,7 +182,7 @@ function validate_argument($argument) {
}
}
function process_summary_arguments(&$args) {
public function processSummaryArguments(&$args) {
$type = $this->options['type'];
$transform = $this->options['transform'];
......
......@@ -137,7 +137,7 @@ function validate_argument($argument) {
return TRUE;
}
function process_summary_arguments(&$args) {
public function processSummaryArguments(&$args) {
// If the validation says the input is an username, we should reverse the
// argument so it works for example for generation summary urls.
$uids_arg_keys = array_flip($args);
......
......@@ -754,10 +754,10 @@ public function getDefaultArgument() {
* For example, the validation plugin may want to alter an argument for use in
* the URL.
*/
function process_summary_arguments(&$args) {
public function processSummaryArguments(&$args) {
if ($this->options['validate']['type'] != 'none') {
if (isset($this->validator) || $this->validator = $this->getPlugin('argument_validator')) {
$this->validator->process_summary_arguments($args);
$this->validator->processSummaryArguments($args);
}
}
}
......
......@@ -90,7 +90,7 @@ function validate_argument($arg) { return TRUE; }
* for a faster query. But there are use cases where you want to use
* the old value again, for example the summary.
*/
function process_summary_arguments(&$args) { }
public function processSummaryArguments(&$args) { }
}
......
......@@ -435,7 +435,7 @@ function template_preprocess_views_view_summary(&$vars) {
foreach ($vars['rows'] as $id => $row) {
$row_args[$id] = $argument->summaryArgument($row);
}
$argument->process_summary_arguments($row_args);
$argument->processSummaryArguments($row_args);
foreach ($vars['rows'] as $id => $row) {
$vars['rows'][$id]->link = $argument->summaryName($row);
......@@ -495,7 +495,7 @@ function template_preprocess_views_view_summary_unformatted(&$vars) {
foreach ($vars['rows'] as $id => $row) {
$row_args[$id] = $argument->summaryArgument($row);
}
$argument->process_summary_arguments($row_args);
$argument->processSummaryArguments($row_args);
foreach ($vars['rows'] as $id => $row) {
// Only false on first time.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment