function commerce_addressbook_rules_condition_info in Commerce Addressbook 7.2
Same name and namespace in other branches
- 7.3 commerce_addressbook.rules.inc \commerce_addressbook_rules_condition_info()
Implement hook_rules_condition_info()
File
- ./
commerce_addressbook.rules.inc, line 34 - Rules integration for Commerce Addressbook.
Code
function commerce_addressbook_rules_condition_info() {
return array(
'commerce_addressbook_profile_is_default' => array(
'label' => t('Customer profile is the default'),
'parameter' => array(
'customer_profile' => array(
'label' => t('Customer Profile'),
'type' => 'commerce_customer_profile',
),
),
'group' => t('Commerce Addressbook'),
'callbacks' => array(
'execute' => 'commerce_addressbook_rules_profile_is_default',
),
),
);
}