You are here

function sms_valid_delete_ruleset in SMS Framework 7

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

Deletes a specified ruleset.

Parameters

int $prefix: A prefix number specifying which ruleset to delete.

Return value

bool true on success, false otherwise.

1 call to sms_valid_delete_ruleset()
sms_valid_admin_rulesets_form_submit in modules/sms_valid/sms_valid.admin.inc
Submit handler for sms_valid_admin_rulesets_form().

File

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

Code

function sms_valid_delete_ruleset($prefix) {
  return db_delete('sms_valid_rules')
    ->condition('prefix', $prefix)
    ->execute();
}