You are here

function sms_valid_delete_ruleset in SMS Framework 6

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

Delete a ruleset

Parameters

$prefix: A prefix number.

Return value

Boolean. Result of the DB query.

1 call to sms_valid_delete_ruleset()
sms_valid_admin_rulesets_form_submit in modules/sms_valid/sms_valid.admin.inc

File

modules/sms_valid/sms_valid.module, line 319
Number validation feature module for Drupal SMS Framework.

Code

function sms_valid_delete_ruleset($prefix) {
  return db_query("DELETE FROM {sms_valid_rules} WHERE prefix = %d", $prefix);
}