| 1 |
<?php |
<?php |
| 2 |
// $Id: image_attach_views_handler_field_attached_images.inc,v 1.2 2009/09/05 15:33:18 joachim Exp $ |
// $Id: image_attach_views_handler_field_attached_images.inc,v 1.3 2009/10/03 07:39:08 joachim Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Field handler to display the attached images on a node. |
* Field handler to display the attached images on a node. |
| 108 |
|
|
| 109 |
switch($this->options['as_link']) { |
switch($this->options['as_link']) { |
| 110 |
case 'node': |
case 'node': |
| 111 |
$output .= l($image_img, 'node/' . $values->{$this->aliases['nid']}, array('html' => true)); |
$output = l($image_img, 'node/' . $values->{$this->aliases['nid']}, array('html' => true)); |
| 112 |
break; |
break; |
| 113 |
case 'image': |
case 'image': |
| 114 |
$output .= l($image_img, 'node/' . $node->nid, array('html' => true)); |
$output = l($image_img, 'node/' . $node->nid, array('html' => true)); |
| 115 |
break; |
break; |
| 116 |
default: |
default: |
| 117 |
$output .= $image_img; |
$output = $image_img; |
| 118 |
break; |
break; |
| 119 |
} |
} |
| 120 |
} |
} |