Commit 1d59d6cb authored by pifagor's avatar pifagor
Browse files

Issue #2945139: options(&$options) deprecated since views2.

parent 2a475d49
......@@ -15,11 +15,11 @@ class link_views_handler_argument_target extends views_handler_argument {
/**
* Provide defaults for the argument when a new one is created.
*/
public function options(&$options) {
// @codingStandardsIgnoreEnd
parent::options($options);
}
function option_definition() {
$options = parent::option_definition();
return $options;
}
/**
* Provide a default options form for the argument.
*
......
......@@ -17,11 +17,14 @@ class link_views_handler_filter_protocol extends views_handler_filter_string {
*
* @codingStandardsIgnoreEnd
*/
public function options(&$options) {
parent::options($options);
function option_definition() {
$options = parent::option_definition();
$options['operator'] = 'OR';
$options['value'] = 'http';
$options['case'] = 0;
return $options;
}
/**
......
Supports Markdown
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