Projet

Général

Profil

Paste
Télécharger (607 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / views / plugins / views_plugin_localization_none.inc @ 7547bb19

1
<?php
2

    
3
/**
4
 * @file
5
 * Contains the 'none' localization plugin.
6
 */
7

    
8
/**
9
 * Localization plugin for no localization.
10
 *
11
 * @ingroup views_localization_plugins
12
 */
13
class views_plugin_localization_none extends views_plugin_localization {
14
  var $translate = FALSE;
15

    
16
  /**
17
   * Translate a string; simply return the string.
18
   */
19
  function translate($source) {
20
    return $source['value'];
21
  }
22

    
23
  /**
24
   * Save a string for translation; not supported.
25
   */
26
  function save($source) {
27
    return FALSE;
28
  }
29

    
30
  /**
31
   * Delete a string; not supported.
32
   */
33
  function delete($source) {
34
    return FALSE;
35
  }
36
}