You are here

function sms_actions_command_delete in SMS Framework 6

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

Delete a command.

1 call to sms_actions_command_delete()
sms_actions_command_confirm_delete_submit in modules/sms_actions/sms_actions.module

File

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

Code

function sms_actions_command_delete($discriminator) {
  $commands = variable_get('sms_actions_commands', array());
  unset($commands[$discriminator]);
  variable_set('sms_actions_commands', $commands);
  db_query("DELETE FROM {trigger_assignments} WHERE op = '%s'", 'sms_actions_' . $discriminator);
}