add_bulk_rules ($all_rules [, $ignore_keys=array()])
Parameters:
  • $ruleset (array) – An array containing sets of rules formatted as per Setting Validation Rules
  • $ignore_keys (array) – An array of keys for $group that should not be passed in to the form_validation object
Returns:

void

Return type:

void

Add a collection of rules to the current ruleset by calling add_rule_by_array for each element in $all_rules. See add_rule_by_array for documentation on $ignore_keys.
N.B. You can provide the "error" key.