You are here

function sms_actions_trigger_info in SMS Framework 7

Implementation of hook_trigger_info().

File

modules/sms_actions/sms_actions.module, line 310
Provides a "Send SMS" action and the ability to define custom triggers for incoming messages.

Code

function sms_actions_trigger_info() {
  $hooks = array();
  $hooks['sms_actions']['sms_actions'] = array(
    'label' => t('When an SMS message with any discriminator is received.'),
  );
  $commands = sms_actions_get_commands();
  foreach ($commands as $command) {
    $hooks['sms_actions'][$command->hook] = array(
      'label' => t('When an SMS message with the %discriminator discriminator is received.', array(
        '%discriminator' => $command->discriminator,
      )),
    );
  }
  return $hooks;
}