source: sipes/modules_contrib/views/modules/system/views_handler_argument_file_fid.inc @ 177a560

stableversion-3.0
Last change on this file since 177a560 was 177a560, checked in by José Gregorio Puentes <jpuentes@…>, 8 años ago

se agrego el directorio de modulos contribuidos de drupal

  • Propiedad mode establecida a 100644
File size: 443 octetos
Línea 
1<?php
2/**
3 * Argument handler to accept a file id.
4 */
5class views_handler_argument_file_fid extends views_handler_argument {
6  /**
7   * Override the behavior of title(). Get the title of the file.
8   */
9  function title() {
10    $title = db_result(db_query(db_rewrite_sql("SELECT f.filename FROM {files} f WHERE f.fid = %d", $this->argument)));
11    if (empty($title)) {
12      return t('No title');
13    }
14
15    return check_plain($title);
16  }
17}
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.