public static function RulesHookHandler::hookRulesConditionInfo in Node expire 7.2
Implements hook_rules_condition_info().
1 call to RulesHookHandler::hookRulesConditionInfo()
- node_expire_rules_condition_info in ./
node_expire.rules.inc - Implements hook_rules_condition_info().
File
- src/
Module/ Hook/ RulesHookHandler.php, line 47 - RulesHookHandler class.
Class
- RulesHookHandler
- RulesHookHandler class.
Namespace
Drupal\node_expire\Module\HookCode
public static function hookRulesConditionInfo() {
return array(
'node_expire_rules_expired_check' => array(
'arguments' => array(
'node' => array(
'type' => 'node',
'label' => t('Content'),
),
),
'label' => t('Content is expired'),
'help' => 'Evaluates to TRUE, if the given content has one of the selected content types.',
'module' => 'node_expire',
),
'node_expire_rules_expired_check_lastnotify' => array(
'arguments' => array(
'node' => array(
'type' => 'node',
'label' => t('Content'),
),
),
'label' => t('Content is expired: Check lastnotify'),
'help' => 'Evaluates to TRUE, if the given content is expired and lastnotified 2 weeks ago.',
'module' => 'node_expire',
),
'node_expire_rules_expired_check_lastnotify_is_set' => array(
'arguments' => array(
'node' => array(
'type' => 'node',
'label' => t('Content'),
),
),
'label' => t('Content is expired: Check lastnotify is set'),
'help' => 'Evaluates to TRUE, if the given content is expired and lastnotified is set.',
'module' => 'node_expire',
),
);
}