function atom_reference_field_diff_options_form in Scald: Media Management made easy 7
Provide a form for setting the field comparison options.
File
- modules/
fields/ atom_reference/ atom_reference.module, line 434 - Defines a new field type, allowing to directly reference Scald Atoms from a node.
Code
function atom_reference_field_diff_options_form($field_type, $settings) {
$options_form = array();
$options_form['show_id'] = array(
'#type' => 'checkbox',
'#title' => t('Show atom id'),
'#default_value' => $settings['show_id'],
);
$options_form['show_type'] = array(
'#type' => 'checkbox',
'#title' => t('Show atom type'),
'#default_value' => $settings['show_type'],
);
$options_form['entity_title'] = array(
'#type' => 'textfield',
'#title' => t('The title to use for the atom entity'),
'#default_value' => $settings['entity_title'],
'#description' => t('This can be useful if you call Atoms differently on your website, such as Resources.'),
);
return $options_form;
}