function nodereference_node_from_noderef_settings_form in Content Construction Kit (CCK) 5
Same name and namespace in other branches
- 6.3 modules/nodereference/panels/relationships/node_from_noderef.inc \nodereference_node_from_noderef_settings_form()
- 6.2 modules/nodereference/panels/relationships/node_from_noderef.inc \nodereference_node_from_noderef_settings_form()
Settings form for the panels relationship.
1 string reference to 'nodereference_node_from_noderef_settings_form'
- nodereference_panels_relationships in ./
nodereference.module - Implementation of hook_panels_relationships().
File
- ./
nodereference.module, line 583 - Defines a field type for referencing one node from another.
Code
function nodereference_node_from_noderef_settings_form($conf) {
$options = array();
foreach (content_fields() as $field) {
if ($field['type'] == 'nodereference') {
$options[$field['field_name']] = t($field['widget']['label']);
}
}
$form['field_name'] = array(
'#title' => t('Node reference field'),
'#type' => 'select',
'#options' => $options,
'#default_value' => $conf['field_name'],
'#prefix' => '<div class="clear-block">',
'#suffix' => '</div>',
);
return $form;
}