Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-3.0-alpha2
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Apr 2010 at 19:03 UTC
Updated:
2 May 2010 at 19:50 UTC
I have a code like this:
function price_views_query_alter(&$view, &$query) {
if ($view->name == 'view_name') {
$query->add_field(
NULL,
'MY_FUNCTION(table_name.field_name)',
'field_name_alias'
);
}
}
How to get value of this newly added field in views theme file (views-view-table--view_name.tpl.php)?
Thank you for your attention.
Comments
Comment #1
dawehnerSee this easy example code
I think this makes it clear how to get it.