function replicate_ui_rules_action_info in Replicate UI 7
Implements hook_rules_action_info().
File
- ./
replicate_ui.rules.inc, line 11 - Replicate Rules code: actions, conditions and events.
Code
function replicate_ui_rules_action_info() {
$actions = array(
'replicate_ui_replicate_user' => array(
'label' => t('Replicate a User Account'),
'group' => t('Replicate'),
'parameter' => array(
'account' => array(
'type' => 'user',
'label' => t('User to replicate'),
),
),
),
'replicate_ui_replicate_node' => array(
'label' => t('Replicate a Node'),
'group' => t('Replicate'),
'parameter' => array(
'node' => array(
'type' => 'node',
'label' => t('Node to replicate'),
),
),
'provides' => array(
'replica_node' => array(
'type' => 'node',
'label' => t('Replica node'),
),
),
),
'replicate_ui_replicate_entity' => array(
'label' => t('Replicate an Entity'),
'group' => t('Replicate'),
'parameter' => array(
'type' => array(
'type' => 'text',
'label' => t('Entity type'),
'options list' => 'rules_entity_action_type_options',
'description' => t('Specifies the type of the entity that should be created.'),
'restriction' => 'input',
),
'entity' => array(
'type' => 'unknown',
'label' => t('Entity to replicate'),
),
),
'provides' => array(
'replica_entity' => array(
'type' => 'entity',
'label' => t('Replica node'),
),
),
),
);
if (module_exists('replicate_field_collection')) {
$actions['replicate_ui_replicate_field_collection'] = array(
'label' => t('Replicate a Field Collection Item'),
'group' => t('Replicate'),
'parameter' => array(
'account' => array(
'type' => 'field_collection_item',
'label' => t('Field Collection Item to replicate'),
),
),
);
}
return $actions;
}