function ca_action_drupal_set_message_form in Ubercart 6.2
See also
ca_action_drupal_set_message()
File
- ca/
ca.ca.inc, line 345 - This file includes some generic conditions and actions.
Code
function ca_action_drupal_set_message_form($form_state, $settings = array()) {
$form = array();
$form['message_text'] = array(
'#type' => 'textarea',
'#title' => t('Message text'),
'#default_value' => $settings['message_text'],
);
$tips = _filter_tips(variable_get('filter_default_format', 1), FALSE);
$form['format']['guidelines'] = array(
'#title' => t('Formatting guidelines'),
'#value' => theme('filter_tips', $tips, FALSE, theme('filter_tips_more_info')),
);
$form['message_type'] = array(
'#type' => 'radios',
'#title' => t('Message type'),
'#options' => array(
'status' => t('Status'),
'error' => t('Error'),
),
'#default_value' => isset($settings['message_type']) ? $settings['message_type'] : 'status',
);
return $form;
}