[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/views/theme/ -> views-view-field.tpl.php (source)

   1  <?php
   2   /**
   3    * This template is used to print a single field in a view. It is not
   4    * actually used in default Views, as this is registered as a theme
   5    * function which has better performance. For single overrides, the
   6    * template is perfectly okay.
   7    *
   8    * Variables available:
   9    * - $view: The view object
  10    * - $field: The field handler object that can process the input
  11    * - $row: The raw SQL result that can be used
  12    * - $output: The processed output that will normally be used.
  13    *
  14    * When fetching output from the $row, this construct should be used:
  15    * $data = $row->{$field->field_alias}
  16    *
  17    * The above will guarantee that you'll always get the correct data,
  18    * regardless of any changes in the aliasing that might happen if
  19    * the view is modified.
  20    */
  21  ?>
  22  <?php print $output; ?>


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7