Mercurial > defr > drupal > views_calc
comparison views_calc.views.inc @ 3:5635080385bd tip
Merge patch with 1.x-dev
| author | Franck Deroche <franck@defr.org> |
|---|---|
| date | Fri, 07 Aug 2009 15:20:12 +0200 |
| parents | b0a976e17cc7 |
| children |
comparison
equal
deleted
inserted
replaced
| 1:cedf71edacf5 | 3:5635080385bd |
|---|---|
| 1 <?php | 1 <?php |
| 2 // $Id: views_calc.views.inc,v 1.7 2009/05/17 11:11:17 karens Exp $ | 2 // $Id: views_calc.views.inc,v 1.9 2009/06/12 16:38:30 karens Exp $ |
| 3 /** | 3 /** |
| 4 * Implementation of hook_views_handlers(). | 4 * Implementation of hook_views_handlers(). |
| 5 */ | 5 */ |
| 6 function views_calc_views_handlers() { | 6 function views_calc_views_handlers() { |
| 7 return array( | 7 return array( |
| 23 */ | 23 */ |
| 24 function views_calc_views_data() { | 24 function views_calc_views_data() { |
| 25 $data = array(); | 25 $data = array(); |
| 26 $results = _views_calc_fields(); | 26 $results = _views_calc_fields(); |
| 27 while($field = db_fetch_array($results)) { | 27 while($field = db_fetch_array($results)) { |
| 28 $data['node']['cid'. $field['cid']] = array( | 28 $data[$field['base']]['cid'. $field['cid']] = array( |
| 29 'group' => t('Views Calc'), | 29 'group' => t('Views Calc'), |
| 30 'title' => t($field['label']), | 30 'title' => t($field['label']), |
| 31 'help' => $field['calc'], | 31 'help' => $field['calc'], |
| 32 'field' => array( | 32 'field' => array( |
| 33 'field' => 'cid'. $field['cid'], | 33 'field' => 'cid'. $field['cid'], |
