function sms_valid_get_rules in SMS Framework 7
Same name and namespace in other branches
- 6.2 modules/sms_valid/sms_valid.module \sms_valid_get_rules()
- 6 modules/sms_valid/sms_valid.module \sms_valid_get_rules()
Gets the rules for a specified prefix.
Parameters
$prefix: A prefix number specifying which ruleset's rules to get.
Return value
array 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']);
}