You are here

function views_plugin_localization::save in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 7.3 plugins/views_plugin_localization.inc \views_plugin_localization::save()

Save string source for translation.

Parameters

$source: Full data for the string to be translated.

1 call to views_plugin_localization::save()
views_plugin_localization::process_locale_strings in plugins/views_plugin_localization.inc
1 method overrides views_plugin_localization::save()
views_plugin_localization_none::save in plugins/views_plugin_localization_none.inc
Save a string for translation; not supported.

File

plugins/views_plugin_localization.inc, line 70
Contains the base class for views localization plugins.

Class

views_plugin_localization
The base plugin to handle localization of Views strings.

Code

function save($source) {

  // Allow other modules to make changes to the string before saving
  $source['pre_process'] = $this
    ->invoke_translation_process($source, 'pre');
  $this
    ->save_string($source['value'], $source['keys'], isset($source['format']) ? $source['format'] : '');
}