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