function uc_order_condition_billing_postal_code_form in Ubercart 6.2
Same name and namespace in other branches
- 5 uc_order/uc_order_workflow.inc \uc_order_condition_billing_postal_code_form()
See also
uc_order_condition_billing_postal_code()
File
- uc_order/
uc_order.ca.inc, line 571 - 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_billing_postal_code_form($form_state, $settings = array()) {
$form['pattern'] = array(
'#type' => 'textfield',
'#title' => uc_get_field_name('postal_code'),
'#default_value' => isset($settings['pattern']) ? $settings['pattern'] : NULL,
'#description' => t('Specify a postal code or postal code pattern. Use "*" as a wild card to specify a range of postal codes.<br /><b>Example:</b> In the US, 402* represents all areas from 40200 to 40299.'),
'#size' => 15,
);
return $form;
}