function smart_ip_rules_condition_info in Smart IP 7
Same name and namespace in other branches
- 7.2 smart_ip.rules.inc \smart_ip_rules_condition_info()
Implements hook_rules_condition_info().
File
- ./
smart_ip.rules.inc, line 14 - Rules integration for the Smart IP module.
Code
function smart_ip_rules_condition_info() {
$items = array();
$items['smart_ip_condition_in_country'] = array(
'label' => t('IP address is in country'),
'group' => t('Smart IP'),
'parameter' => array(
'country' => array(
'type' => 'list<text>',
'label' => t('Country'),
'description' => t('The countries to check for.'),
'options list' => 'smart_ip_country_list',
),
),
);
$items['smart_ip_condition_in_region'] = array(
'label' => t('IP address is in region'),
'group' => t('Smart IP'),
'parameter' => array(
'regid' => array(
'type' => 'text',
'label' => t('Region ID'),
'description' => t('The region ID to check for.'),
),
),
);
$items['smart_ip_condition_in_city'] = array(
'label' => t('IP address is in city'),
'group' => t('Smart IP'),
'parameter' => array(
'city' => array(
'type' => 'text',
'label' => t('City'),
'description' => t('The city to check for.'),
),
),
);
return $items;
}