| 1 |
<?php |
<?php |
| 2 |
// $Id: views_calc.views.inc,v 1.6 2009/04/25 13:41:00 karens Exp $ |
// $Id: views_calc.views.inc,v 1.7 2009/05/17 11:11:17 karens Exp $ |
| 3 |
/** |
/** |
| 4 |
* Implementation of hook_views_handlers(). |
* Implementation of hook_views_handlers(). |
| 5 |
*/ |
*/ |
| 25 |
$data = array(); |
$data = array(); |
| 26 |
$results = _views_calc_fields(); |
$results = _views_calc_fields(); |
| 27 |
while($field = db_fetch_array($results)) { |
while($field = db_fetch_array($results)) { |
| 28 |
$data['node']['cid'. $field['cid']] = array( |
$data[$field['base']]['cid'. $field['cid']] = array( |
| 29 |
'group' => t('Views Calc'), |
'group' => t('Views Calc'), |
| 30 |
'title' => t($field['label']), |
'title' => t($field['label']), |
| 31 |
'help' => $field['calc'], |
'help' => $field['calc'], |