function sms_valid_get_rules in SMS Framework 6
Same name and namespace in other branches
- 6.2 modules/sms_valid/sms_valid.module \sms_valid_get_rules()
- 7 modules/sms_valid/sms_valid.module \sms_valid_get_rules()
Get the rules for a prefix
Parameters
$rules: A prefix number.
Return value
An array of rules.
File
- modules/
sms_valid/ sms_valid.module, line 333 - Number validation feature module for Drupal SMS Framework.
Code
function sms_valid_get_rules($prefix) {
$ruleset = sms_valid_get_ruleset($prefix);
return unserialize($ruleset['rules']);
}