You are here

function twilio_twiml_rules_action_info in Twilio 7

Implements hook_rules_action_info().

File

twilio_twiml/twilio_twiml.rules.inc, line 10
Rules module integration

Code

function twilio_twiml_rules_action_info() {
  $defaults = array(
    'group' => t('Twilio'),
    'module' => 'twilio_twiml',
  );
  $actions['twilio_twiml_output'] = $defaults + array(
    'label' => t('Output TwiML'),
    'base' => 'twilio_twiml_rules_action_twiml_output',
    'parameter' => array(
      'twiml_id' => array(
        'type' => 'text',
        'label' => t('TwiML'),
        'options list' => 'twilio_twiml_options_list',
        'restriction' => 'input',
      ),
    ),
  );
  return $actions;
}