Commit da83b1ab authored by alexpott's avatar alexpott
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
...@@ -182,7 +182,7 @@ function validate_argument($argument) { ...@@ -182,7 +182,7 @@ function validate_argument($argument) {
} }
} }
function process_summary_arguments(&$args) { public function processSummaryArguments(&$args) {
$type = $this->options['type']; $type = $this->options['type'];
$transform = $this->options['transform']; $transform = $this->options['transform'];
......
...@@ -137,7 +137,7 @@ function validate_argument($argument) { ...@@ -137,7 +137,7 @@ function validate_argument($argument) {
return TRUE; return TRUE;
} }
function process_summary_arguments(&$args) { public function processSummaryArguments(&$args) {
// If the validation says the input is an username, we should reverse the // If the validation says the input is an username, we should reverse the
// argument so it works for example for generation summary urls. // argument so it works for example for generation summary urls.
$uids_arg_keys = array_flip($args); $uids_arg_keys = array_flip($args);
......
...@@ -754,10 +754,10 @@ public function getDefaultArgument() { ...@@ -754,10 +754,10 @@ public function getDefaultArgument() {
* For example, the validation plugin may want to alter an argument for use in * For example, the validation plugin may want to alter an argument for use in
* the URL. * the URL.
*/ */
function process_summary_arguments(&$args) { public function processSummaryArguments(&$args) {
if ($this->options['validate']['type'] != 'none') { if ($this->options['validate']['type'] != 'none') {
if (isset($this->validator) || $this->validator = $this->getPlugin('argument_validator')) { 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; } ...@@ -90,7 +90,7 @@ function validate_argument($arg) { return TRUE; }
* for a faster query. But there are use cases where you want to use * for a faster query. But there are use cases where you want to use
* the old value again, for example the summary. * 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) { ...@@ -435,7 +435,7 @@ function template_preprocess_views_view_summary(&$vars) {
foreach ($vars['rows'] as $id => $row) { foreach ($vars['rows'] as $id => $row) {
$row_args[$id] = $argument->summaryArgument($row); $row_args[$id] = $argument->summaryArgument($row);
} }
$argument->process_summary_arguments($row_args); $argument->processSummaryArguments($row_args);
foreach ($vars['rows'] as $id => $row) { foreach ($vars['rows'] as $id => $row) {
$vars['rows'][$id]->link = $argument->summaryName($row); $vars['rows'][$id]->link = $argument->summaryName($row);
...@@ -495,7 +495,7 @@ function template_preprocess_views_view_summary_unformatted(&$vars) { ...@@ -495,7 +495,7 @@ function template_preprocess_views_view_summary_unformatted(&$vars) {
foreach ($vars['rows'] as $id => $row) { foreach ($vars['rows'] as $id => $row) {
$row_args[$id] = $argument->summaryArgument($row); $row_args[$id] = $argument->summaryArgument($row);
} }
$argument->process_summary_arguments($row_args); $argument->processSummaryArguments($row_args);
foreach ($vars['rows'] as $id => $row) { foreach ($vars['rows'] as $id => $row) {
// Only false on first time. // Only false on first time.
......
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