function view::init_localization

cis7 view.inc view::init_localization()
cle7 view.inc view::init_localization()
elmsmedia7 view.inc view::init_localization()
icor7 view.inc view::init_localization()
meedjum_blog7 view.inc view::init_localization()
mooc7 view.inc view::init_localization()

Find and initialize the localizer plugin.

2 calls to view::init_localization()
view::export in sites/all/modules/ulmus/views/includes/view.inc
Export a view as PHP code.
view::process_locale_strings in sites/all/modules/ulmus/views/includes/view.inc
Process strings for localization, deletion or export to code.

File

sites/all/modules/ulmus/views/includes/view.inc, line 2081
Provides the view object type and associated methods.

Class

view
An object to contain all of the data to generate a view, plus the member functions to build the view query, execute the query and render the output.

Code

function init_localization() {
  if (isset($this->localization_plugin) && is_object($this->localization_plugin)) {
    return TRUE;
  }

  $this->localization_plugin = views_get_plugin('localization', views_get_localization_plugin());

  if (empty($this->localization_plugin)) {
    $this->localization_plugin = views_get_plugin('localization', 'none');
    return FALSE;
  }

  /**
   * Figure out whether there should be options.
   */
  $this->localization_plugin->init($this);

  return $this->localization_plugin->translate;
}
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.