function interval_rules_action_info in Interval Field 8
Same name and namespace in other branches
- 7 interval.rules.inc \interval_rules_action_info()
Implements hook_rules_action_info().
File
- ./
interval.rules.inc, line 16 - Provides rules integration for interval module. @copyright Copyright(c) 2011 Lee Rowlands @license GPL v2+ http://www.fsf.org/licensing/licenses/gpl.html @author Lee Rowlands contact at rowlandsgroup dot com
Code
function interval_rules_action_info() {
$actions['interval_apply'] = [
'label' => t('Apply an interval to a date'),
'parameter' => [
'interval' => [
'type' => 'integer',
'label' => t('Interval number'),
'description' => t('The number of multiples of the interval period.'),
],
'period' => [
'type' => 'token',
'label' => t('Interval period'),
'options list' => 'interval_period_options_list',
],
'date' => [
'type' => 'date',
'label' => t('Date'),
],
],
'provides' => [
'date' => [
'type' => 'date',
'label' => t('New date'),
],
],
'group' => t('Data'),
'base' => 'interval_rules_apply_interval',
];
return $actions;
}