You are here

function sms_actions_hook_info in SMS Framework 6.2

Same name and namespace in other branches
  1. 6 modules/sms_actions/sms_actions.module \sms_actions_hook_info()

Implementation of hook_hook_info().

File

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

Code

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