function node_gallery_api_rules_condition_info in Node Gallery 7
Implements hook_rules_condition_info().
File
- ./
node_gallery_api.rules.inc, line 282 - Rules module integration.
Code
function node_gallery_api_rules_condition_info() {
$items = array();
$items['node_gallery_item_in_gallery'] = array(
'label' => t('Item is in gallery'),
'group' => t('Node Gallery'),
'parameter' => array(
'item' => array(
'type' => 'node',
'label' => t('Gallery item'),
'description' => t('The gallery item which will be checked.'),
'wrapped' => TRUE,
),
'gallery_nid' => array(
'type' => 'integer',
'label' => t('Gallery Node NID'),
'description' => t('The gallery NID which will be checked. If left empty, will check for any gallery.'),
'optional' => TRUE,
),
),
'base' => 'node_gallery_api_rules_condition_item_in_gallery',
);
$items['node_gallery_is_gallery_type'] = array(
'label' => t('Node is gallery type'),
'group' => t('Node Gallery'),
'parameter' => array(
'gallery' => array(
'type' => 'node',
'label' => t('Gallery'),
'wrapped' => TRUE,
),
),
'base' => 'node_gallery_api_rules_condition_is_gallery_type',
);
$items['node_gallery_is_item_type'] = array(
'label' => t('Node is gallery item type'),
'group' => t('Node Gallery'),
'parameter' => array(
'item' => array(
'type' => 'node',
'label' => t('Gallery Item'),
'wrapped' => TRUE,
),
),
'base' => 'node_gallery_api_rules_condition_is_item_type',
);
return $items;
}