function views_object::_set_option_defaults

cis7 base.inc views_object::_set_option_defaults(&$storage, $options, $level = 0)
cle7 base.inc views_object::_set_option_defaults(&$storage, $options, $level = 0)
elmsmedia7 base.inc views_object::_set_option_defaults(&$storage, $options, $level = 0)
icor7 base.inc views_object::_set_option_defaults(&$storage, $options, $level = 0)
meedjum_blog7 base.inc views_object::_set_option_defaults(&$storage, $options, $level = 0)
mooc7 base.inc views_object::_set_option_defaults(&$storage, $options, $level = 0)
1 call to views_object::_set_option_defaults()
views_object::set_default_options in sites/all/modules/ulmus/views/includes/base.inc
Set default options. For backward compatibility, it sends the options array; this is a feature that will likely disappear at some point.

File

sites/all/modules/ulmus/views/includes/base.inc, line 83
Provides the basic object definitions used by plugins and handlers.

Class

views_object
Basic definition for many views objects.

Code

function _set_option_defaults(&$storage, $options, $level = 0) {
  foreach ($options as $option => $definition) {
    if (isset($definition['contains']) && is_array($definition['contains'])) {
      $storage[$option] = array();
      $this->_set_option_defaults($storage[$option], $definition['contains'], $level++);
    }
    elseif (!empty($definition['translatable']) && !empty($definition['default'])) {
      $storage[$option] = t($definition['default']);
    }
    else {
      $storage[$option] = isset($definition['default']) ? $definition['default'] : NULL;
    }
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.