function nodereferrer_field_instance_settings_form in NodeReferrer 7
Implements hook_field_instance_settings_form().
File
- ./
nodereferrer.module, line 128 - Defines a field type for backlinking referencing nodes.
Code
function nodereferrer_field_instance_settings_form($field, $instance) {
$settings = $instance['settings'];
$form['prefix'] = array(
'#type' => 'textfield',
'#title' => t('Prefix'),
'#default_value' => $settings['prefix'],
'#size' => 60,
'#description' => t("Define a string that should be prefixed to the value, like '\$ ' or '€ '. Leave blank for none. Separate singular and plural values with a pipe ('pound|pounds')."),
);
$form['suffix'] = array(
'#type' => 'textfield',
'#title' => t('Suffix'),
'#default_value' => $settings['suffix'],
'#size' => 60,
'#description' => t("Define a string that should be suffixed to the value, like ' m', ' kb/s'. Leave blank for none. Separate singular and plural values with a pipe ('pound|pounds')."),
);
return $form;
}