You are here

function sms_actions_command_load in SMS Framework 7

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

Loads a specific command.

Parameters

string $discriminator: The given name for the command.

Return value

object The command object with the associated discriminator (machine_name).

2 calls to sms_actions_command_load()
sms_actions_command_confirm_delete in modules/sms_actions/sms_actions.module
Form constructor for command delete confirmation form.
sms_actions_edit_command_form in modules/sms_actions/sms_actions.module
Form constructor for the sms_actions command editing form.

File

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

Code

function sms_actions_command_load($discriminator) {
  $commands = variable_get('sms_actions_commands', array());
  return $commands[$discriminator];
}