You are here

function sms_actions_get_commands in SMS Framework 6

Same name and namespace in other branches
  1. 6.2 modules/sms_actions/sms_actions.module \sms_actions_get_commands()
  2. 7 modules/sms_actions/sms_actions.module \sms_actions_get_commands()

Returns an array of commands objects.

5 calls to sms_actions_get_commands()
sms_actions_action_info_alter in modules/sms_actions/sms_actions.module
sms_actions_command_list in modules/sms_actions/sms_actions.module
Menu callback: command listing
sms_actions_command_save in modules/sms_actions/sms_actions.module
Save a command.
sms_actions_hook_info in modules/sms_actions/sms_actions.module
Implementation of hook_hook_info().
sms_actions_sms_incoming in modules/sms_actions/sms_actions.module
Implementation of hook_sms_incoming()

File

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

Code

function sms_actions_get_commands() {
  $commands = variable_get('sms_actions_commands', array());
  foreach ($commands as $key => $command) {
    $commands[$key]->op = 'sms_actions_' . $command->discriminator;
  }
  return $commands;
}