function nodereference_node_from_noderef_settings_form in Content Construction Kit (CCK) 6.2
Same name and namespace in other branches
- 5 nodereference.module \nodereference_node_from_noderef_settings_form()
- 6.3 modules/nodereference/panels/relationships/node_from_noderef.inc \nodereference_node_from_noderef_settings_form()
Settings form for the ctools relationship.
1 string reference to 'nodereference_node_from_noderef_settings_form'
- nodereference_node_from_noderef_ctools_relationships in modules/
nodereference/ panels/ relationships/ node_from_noderef.inc - Implementation of hook_ctools_relationships().
File
- modules/
nodereference/ panels/ relationships/ node_from_noderef.inc, line 58 - Implements the node reference relationship for Panels.
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' => isset($conf['field_name']) ? $conf['field_name'] : '',
'#prefix' => '<div class="clear-block">',
'#suffix' => '</div>',
);
return $form;
}