Projet

Général

Profil

Révision 5d12d676

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/views/modules/taxonomy/views_handler_argument_vocabulary_machine_name.inc
11 11
 * @ingroup views_argument_handlers
12 12
 */
13 13
class views_handler_argument_vocabulary_machine_name extends views_handler_argument_string {
14

  
14 15
  /**
15 16
   * Override the behavior of title(). Get the name of the vocabulary..
16 17
   */
17
  function title() {
18
  public function title() {
18 19
    $title = db_query("SELECT v.name FROM {taxonomy_vocabulary} v WHERE v.machine_name = :machine_name", array(':machine_name' => $this->argument))->fetchField();
19 20

  
20 21
    if (empty($title)) {
......
23 24

  
24 25
    return check_plain($title);
25 26
  }
27

  
26 28
}

Formats disponibles : Unified diff