function drupagram_actions_rules_action_info in Drupagram 7
Implements hook_rules_action_info() on behalf of the drupagram module.
File
- drupagram_actions/
drupagram_actions.rules.inc, line 10 - Provide better intergration into the rules module
Code
function drupagram_actions_rules_action_info() {
return array(
'rules_core_drupagram_actions_set_status_action' => array(
'label' => t('Post a message to drupagram'),
'group' => t('drupagram'),
'parameter' => array(
'message' => array(
'type' => 'text',
'label' => t('Message'),
'description' => t("The content of the instagram."),
),
'sender' => array(
'type' => 'user',
'label' => t('Sender'),
'description' => t("User whose drupagram account will be used."),
),
),
'base' => 'drupagram_actions_set_status',
'access callback' => 'rules_drupagram_actions_access_callback',
),
);
}