Commit fb03231e authored by alexpott's avatar alexpott

Issue #2002420 by oenie: Rename Views method check_access() to checkAccess().

parent 65d70e1a
......@@ -80,7 +80,7 @@ public function access() { return TRUE; }
* This is only called by child objects if specified in the buildOptionsForm(),
* so it will not always be used.
*/
function check_access(&$form, $option_name) {
protected function checkAccess(&$form, $option_name) {
if (!$this->access()) {
$form[$option_name]['#disabled'] = TRUE;
$form[$option_name]['#value'] = $form[$this->option_name]['#default_value'];
......
......@@ -39,7 +39,7 @@ public function buildOptionsForm(&$form, &$form_state) {
);
// Only do this if using one simple standard form gadget
$this->check_access($form, 'code');
$this->checkAccess($form, 'code');
}
/**
......
......@@ -72,7 +72,7 @@ public function access() { return TRUE; }
* This is only called by child objects if specified in the buildOptionsForm(),
* so it will not always be used.
*/
function check_access(&$form, $option_name) {
protected function checkAccess(&$form, $option_name) {
if (!$this->access()) {
$form[$option_name]['#disabled'] = TRUE;
$form[$option_name]['#value'] = $form[$this->option_name]['#default_value'];
......
......@@ -38,7 +38,7 @@ public function buildOptionsForm(&$form, &$form_state) {
'#description' => t('Enter PHP code that returns TRUE or FALSE. No return is the same as FALSE, so be SURE to return something if you do not want to declare the argument invalid. Do not use <?php ?>. The argument to validate will be "$argument" and the view will be "$view". You may change the argument by setting "$handler->argument". You may change the title used for substitutions for this argument by setting "$handler->validated_title".'),
);
$this->check_access($form, 'code');
$this->checkAccess($form, 'code');
}
/**
......
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