function privatemsg_rules_rules_condition_info in Privatemsg 7
Same name and namespace in other branches
- 6.2 privatemsg_rules/privatemsg_rules.rules.inc \privatemsg_rules_rules_condition_info()
- 7.2 privatemsg_rules/privatemsg_rules.rules.inc \privatemsg_rules_rules_condition_info()
Implements hook_rules_condition_info().
File
- privatemsg_rules/
privatemsg_rules.rules.inc, line 168 - Hooks and callback functions for rules.module integration.
Code
function privatemsg_rules_rules_condition_info() {
if (module_exists('privatemsg_filter')) {
return array(
'privatemsg_rules_thread_has_tag' => array(
'label' => t('Thread has tag'),
'parameter' => array(
'thread_id' => array(
'type' => 'integer',
'label' => t('Specify the thread ID that should be checked.'),
),
'account' => array(
'type' => 'user',
'label' => t('Specify the user that should be checked.'),
),
'privatemsg_tag' => array(
'type' => 'text',
'label' => t('Name of the tag for which should be checked.'),
),
'check_all' => array(
'type' => 'boolean',
'label' => t('Only return TRUE if all tags are found.'),
),
),
'group' => t('Private messages'),
),
);
}
}