function lingotek_rules_action_info in Lingotek Translation 7.7
Same name and namespace in other branches
- 7.5 lingotek.rules.inc \lingotek_rules_action_info()
- 7.6 lingotek.rules.inc \lingotek_rules_action_info()
Implements hook_rules_action_info().
File
- ./
lingotek.rules.inc, line 11 - Lingotek Module + Rules Module Integration
Code
function lingotek_rules_action_info() {
$actions['lingotek_entity_upload'] = array(
'group' => t('Lingotek'),
'label' => t('Upload an entity'),
'base' => 'lingotek_rules_entity_upload',
'parameter' => array(
'entity' => array(
'type' => 'entity',
'label' => t('Entity'),
),
),
);
$actions['lingotek_entity_download'] = array(
'group' => t('Lingotek'),
'label' => t('Download specified translations'),
'base' => 'lingotek_rules_entity_download',
'parameter' => array(
'entity' => array(
'type' => 'entity',
'label' => t('Entity'),
),
'language' => array(
'type' => 'list<text>',
'label' => t('Language'),
'options list' => 'lingotek_rules_languages',
),
),
);
$actions['lingotek_entity_download_all_translations'] = array(
'group' => t('Lingotek'),
'label' => t('Download all translations'),
'base' => 'lingotek_rules_entity_download_all',
'parameter' => array(
'entity' => array(
'type' => 'entity',
'label' => t('Entity'),
),
),
);
$actions['lingotek_entity_change_profile'] = array(
'group' => t('Lingotek'),
'label' => t('Change Profile'),
'base' => 'lingotek_rules_entity_change_profile',
'parameter' => array(
'entity' => array(
'type' => 'entity',
'label' => t('Entity'),
),
'language' => array(
'type' => 'text',
'label' => t('Profile'),
'options list' => 'lingotek_get_profile_options',
),
),
);
$actions['lingotek_entity_change_workflow'] = array(
'group' => t('Lingotek'),
'label' => t('Change Workflow'),
'base' => 'lingotek_rules_entity_change_workflow',
'parameter' => array(
'entity' => array(
'type' => 'entity',
'label' => t('Entity'),
),
'language' => array(
'type' => 'text',
'label' => t('Workflow'),
'options list' => 'lingotek_get_workflow_options',
),
),
);
return $actions;
}