function sms_valid_ruleset_set_status in SMS Framework 6
Same name and namespace in other branches
- 6.2 modules/sms_valid/sms_valid.module \sms_valid_ruleset_set_status()
- 7 modules/sms_valid/sms_valid.module \sms_valid_ruleset_set_status()
Set enabled directions for a ruleset
Parameters
$prefix: A prefix number.
$dir: The direction code that you want to set. See SMS_DIR_* constants.
Return value
Bollean. Result of the DB query.
1 call to sms_valid_ruleset_set_status()
- sms_valid_admin_rulesets_form_submit in modules/
sms_valid/ sms_valid.admin.inc
File
- modules/
sms_valid/ sms_valid.module, line 270 - Number validation feature module for Drupal SMS Framework.
Code
function sms_valid_ruleset_set_status($prefix, $dir = SMS_DIR_ALL) {
return db_query("UPDATE {sms_valid_rules} SET dirs_enabled = %d WHERE prefix = %d", $dir, $prefix);
}