function deploy_rules_action_info in Deploy - Content Staging 7.2
Same name and namespace in other branches
- 7.3 deploy.rules.inc \deploy_rules_action_info()
Implements hook_rules_action_info().
File
- ./
deploy.rules.inc, line 11 - Rules implementations.
Code
function deploy_rules_action_info() {
return array(
'deploy_rules_action_deploy_plan' => array(
'label' => t('Deploy a plan'),
'group' => t('Deploy'),
'parameter' => array(
'plan_name' => array(
'type' => 'text',
'label' => t('Plan name'),
'options list' => 'deploy_rules_plan_get_options',
),
),
),
'deploy_rules_action_add_to_managed_plan' => array(
'label' => t('Add entity to managed deployment plan'),
'group' => t('Deploy'),
'parameter' => array(
'plan_name' => array(
'type' => 'text',
'label' => t('Plan name'),
'description' => t('The plan to add the entity to.'),
'options list' => 'deploy_rules_manager_plan_get_options',
),
'entity' => array(
'type' => 'entity',
'label' => t('Entity'),
'description' => t('The entity that shall be added to the plan.'),
'wrapped' => TRUE,
),
),
),
'deploy_manager_action_delete_from_plan' => array(
'label' => t('Remove an entity from a deployment plan'),
'group' => t('Deploy'),
'parameter' => array(
'plan_name' => array(
'type' => 'text',
'label' => t('Plan name'),
'description' => t('The plan to remove the entity from.'),
'options list' => 'deploy_rules_manager_plan_get_options',
),
'entity' => array(
'type' => 'entity',
'label' => t('Entity'),
'description' => t('The entity that shall be removed from the plan.'),
'wrapped' => TRUE,
),
),
),
);
}