| 1 |
<?php |
<?php |
| 2 |
// $Id: nodereference.module,v 1.39.2.41 2008/09/17 09:12:29 yched Exp $ |
// $Id: nodereference.module,v 1.39.2.42 2008/09/17 18:02:28 yched Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 42 |
'#title' => t('Content types that can be referenced'), |
'#title' => t('Content types that can be referenced'), |
| 43 |
'#multiple' => TRUE, |
'#multiple' => TRUE, |
| 44 |
'#default_value' => isset($field['referenceable_types']) ? $field['referenceable_types'] : array(), |
'#default_value' => isset($field['referenceable_types']) ? $field['referenceable_types'] : array(), |
| 45 |
'#options' => node_get_types('names'), |
'#options' => array_map('check_plain', node_get_types('names')), |
| 46 |
); |
); |
| 47 |
if (module_exists('views')) { |
if (module_exists('views')) { |
| 48 |
$views = array('--' => '--'); |
$views = array('--' => '--'); |