You are here

function uc_quote_rules_condition_info in Ubercart 7.3

Implements hook_rules_condition_info().

File

shipping/uc_quote/uc_quote.rules.inc, line 11
Rules hooks for uc_quote.module.

Code

function uc_quote_rules_condition_info() {
  return array(
    'uc_quote_condition_order_shipping_method' => array(
      'label' => t("Order has a shipping quote from a particular method"),
      'group' => t('Order: Shipping Quote'),
      'base' => 'uc_quote_condition_order_shipping_method',
      'parameter' => array(
        'order' => array(
          'type' => 'uc_order',
          'label' => t('Order'),
        ),
        'method' => array(
          'type' => 'text',
          'label' => t('Shipping method'),
          'options list' => 'uc_quote_condition_order_shipping_method_options',
        ),
      ),
    ),
  );
}