function uc_order_condition_user_created_form in Ubercart 6.2
See also
uc_order_condition_user_created()
File
- uc_order/
uc_order.ca.inc, line 965 - This file contains the Conditional Actions hooks and functions necessary to make the order related entity, conditions, events, and actions work.
Code
function uc_order_condition_user_created_form($form_state, $settings = array()) {
$form['operator'] = array(
'#type' => 'radios',
'#title' => t('Operator'),
'#options' => array(
'less' => t('User was created before the specified date.'),
'less_equal' => t('User was created on or before the specified date.'),
'equal' => t('User was created on the specified date.'),
'not_equal' => t('User was not created on the specified date.'),
'greater_equal' => t('User was created on or after the specified date.'),
'greater' => t('User was created after the specified date.'),
),
'#default_value' => isset($settings['operator']) ? $settings['operator'] : 'equal',
);
$form['created'] = array(
'#type' => 'date',
'#title' => t('User creation date'),
'#default_value' => isset($settings['created']) ? $settings['created'] : '',
);
return $form;
}