You are here

public function views_object::set_default_options in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 includes/base.inc \views_object::set_default_options()
  2. 6.2 includes/base.inc \views_object::set_default_options()

Set default options.

For backward compatibility, it sends the options array; this is a feature that will likely disappear at some point.

1 call to views_object::set_default_options()
views_object::construct in includes/base.inc
Views handlers use a special construct function.

File

includes/base.inc, line 109
Definition of views_object.

Class

views_object
Provides the basic object definitions used by plugins and handlers.

Code

public function set_default_options() {
  $this
    ->_set_option_defaults($this->options, $this
    ->altered_option_definition());

  // Retained for complex defaults plus backward compatibility.
  $this
    ->options($this->options);
}