| 1 |
<?php |
<?php |
| 2 |
// $Id: views_handler_field.inc,v 1.14.2.19 2009/09/24 23:28:23 merlinofchaos Exp $ |
// $Id: views_handler_field.inc,v 1.14.2.20 2009/11/02 23:31:14 merlinofchaos Exp $ |
| 3 |
/** |
/** |
| 4 |
* @defgroup views_field_handlers Views' field handlers |
* @defgroup views_field_handlers Views' field handlers |
| 5 |
* @{ |
* @{ |
| 94 |
else { |
else { |
| 95 |
$table_alias = $this->table_alias; |
$table_alias = $this->table_alias; |
| 96 |
} |
} |
| 97 |
$this->aliases[$identifier] = $this->query->add_field($table_alias, $info['field']); |
$params = array(); |
| 98 |
|
if (!empty($info['params'])) { |
| 99 |
|
$params = $info['params']; |
| 100 |
|
} |
| 101 |
|
|
| 102 |
|
$this->aliases[$identifier] = $this->query->add_field($table_alias, $info['field'], NULL, $params); |
| 103 |
} |
} |
| 104 |
else { |
else { |
| 105 |
$this->aliases[$info] = $this->query->add_field($this->table_alias, $info); |
$this->aliases[$info] = $this->query->add_field($this->table_alias, $info); |
| 178 |
* should have. |
* should have. |
| 179 |
*/ |
*/ |
| 180 |
function options_form(&$form, &$form_state) { |
function options_form(&$form, &$form_state) { |
| 181 |
|
parent::options_form($form, $form_state); |
| 182 |
|
|
| 183 |
$form['label'] = array( |
$form['label'] = array( |
| 184 |
'#type' => 'textfield', |
'#type' => 'textfield', |
| 185 |
'#title' => t('Label'), |
'#title' => t('Label'), |
| 279 |
'edit-options-alter-make-link' => array(1) |
'edit-options-alter-make-link' => array(1) |
| 280 |
), |
), |
| 281 |
); |
); |
| 282 |
|
|
| 283 |
|
|
| 284 |
// Get a list of the available fields and arguments for token replacement. |
// Get a list of the available fields and arguments for token replacement. |
| 285 |
$options = array(); |
$options = array(); |
| 465 |
$this->original_value = $this->last_render; |
$this->original_value = $this->last_render; |
| 466 |
|
|
| 467 |
$alter = $item + $this->options['alter']; |
$alter = $item + $this->options['alter']; |
| 468 |
$items[] = $this->render_text($alter); |
$items[] = $this->render_text($alter); |
| 469 |
} |
} |
| 470 |
|
|
| 471 |
$value = $this->render_items($items); |
$value = $this->render_items($items); |
| 518 |
|
|
| 519 |
return $value; |
return $value; |
| 520 |
} |
} |
| 521 |
|
|
| 522 |
/** |
/** |
| 523 |
* Render this field as altered text, from a fieldset set by the user. |
* Render this field as altered text, from a fieldset set by the user. |
| 524 |
*/ |
*/ |