function uc_order_condition_user_name_form in Ubercart 6.2
See also
uc_order_condition_user_name()
File
- uc_order/
uc_order.ca.inc, line 899 - 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_name_form($form_state, $settings = array()) {
$form['name'] = array(
'#type' => 'textfield',
'#title' => t('User name'),
'#default_value' => isset($settings['name']) ? $settings['name'] : '',
'#autocomplete_path' => 'user/autocomplete',
'#description' => t('Leave blank for %anonymous.', array(
'%anonymous' => variable_get('anonymous', t('Anonymous')),
)),
);
return $form;
}