function sms_actions_command_delete in SMS Framework 7
Same name and namespace in other branches
- 6.2 modules/sms_actions/sms_actions.module \sms_actions_command_delete()
- 6 modules/sms_actions/sms_actions.module \sms_actions_command_delete()
Deletes a command.
1 call to sms_actions_command_delete()
- sms_actions_command_confirm_delete_submit in modules/
sms_actions/ sms_actions.module - Submit handler for sms_actions_command_confirm_delete().
File
- modules/
sms_actions/ sms_actions.module, line 377 - 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 hook = '%s'", array(
'sms_actions_' . $discriminator,
));
}