function node_gallery_relationship_content_types_form in Node Gallery 6.3
1 string reference to 'node_gallery_relationship_content_types_form'
- node_gallery_menu in ./
node_gallery.module - Implements hook_menu().
File
- ./
node_gallery.admin.inc, line 193
Code
function node_gallery_relationship_content_types_form($form_state, $relationship = NULL) {
static $node_types, $image_types, $imagecaches;
$form['relationship'] = array(
'#tree' => TRUE,
);
if (empty($node_types)) {
foreach (node_get_types() as $node_type) {
$node_types[$node_type->type] = check_plain($node_type->name);
}
}
$form['#relationship'] = $relationship;
$form['relationship']['gallery_type'] = array(
'#type' => 'radios',
'#title' => t('Gallery Type'),
'#options' => $node_types,
'#description' => t('Select which content type should be used as the gallery type.'),
'#default_value' => $relationship['gallery_type'],
'#required' => TRUE,
);
$form['relationship']['image_type'] = array(
'#type' => 'radios',
'#title' => t('Image Type'),
'#options' => $node_types,
'#description' => t('Select which content type should be used as the image type.'),
'#default_value' => $relationship['image_type'],
'#required' => TRUE,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Save'),
);
return $form;
}