function petreference_rules_action_load_form in Previewable email templates 6
File
- modules/
petreference/ petreference.rules.inc, line 39 - Provides additional rules support for petreference fields.
Code
function petreference_rules_action_load_form($settings, &$form) {
$settings += array(
'field' => '',
);
$options = content_rules_get_field_names_by_type('petreference');
$form['settings']['field'] = array(
'#type' => 'select',
'#title' => t('Field'),
'#default_value' => $settings['field'],
'#options' => $options,
'#required' => TRUE,
'#disabled' => empty($options),
'#description' => empty($options) ? t('There are no petreference fields defined.') : '',
);
}