| 1 |
<?php |
<?php |
| 2 |
|
|
| 3 |
// $Id: collection.module,v 1.1 2009/03/30 14:34:03 xen Exp $ |
// $Id: collection.module,v 1.2 2009/03/30 19:24:38 xen Exp $ |
| 4 |
|
|
| 5 |
/** |
/** |
| 6 |
* @file |
* @file |
| 79 |
|
|
| 80 |
$fields = array(NULL => t('Not a collection')); |
$fields = array(NULL => t('Not a collection')); |
| 81 |
$content_type = content_types($type); |
$content_type = content_types($type); |
| 82 |
if ($content_type) { |
if ($content_type['fields']) { |
| 83 |
foreach ($content_type['fields'] as $name => $field) { |
foreach ($content_type['fields'] as $name => $field) { |
| 84 |
if ($field['type'] == 'nodereference') { |
if ($field['type'] == 'nodereference') { |
| 85 |
$fields[$field['field_name']] = t($field['widget']['label']); |
$fields[$field['field_name']] = t($field['widget']['label']); |