function fusion_apply_rule_load in Fusion Accelerator 7.2
Same name and namespace in other branches
- 7 fusion_apply/fusion_apply_rules.module \fusion_apply_rule_load()
Load a rule object.
Parameters
$rid: (optional) The rule ID.
Return value
A rule object. If no $rid is specified an array of all rules will be returned.
6 calls to fusion_apply_rule_load()
- FusionApplyDisplayTestCase::testFusionApplyRulesLoadSave in fusion_apply/
tests/ fusion_apply.test - Tests loading and saving of rules.
- fusion_apply_rule_delete in fusion_apply/
fusion_apply_rules.module - Delete a skins rule object.
- fusion_apply_rule_delete_confirm in fusion_apply/
fusion_apply_ui.rules.inc - Menu callback; displays the delete confirmation for a skin rule.
- fusion_apply_rule_edit in fusion_apply/
fusion_apply_ui.rules.inc - Form builder for the rule configuration form.
- fusion_apply_rule_is_visible in fusion_apply/
fusion_apply_rules.module - Determines if the rule should be visible for a given path.
File
- fusion_apply/
fusion_apply_rules.module, line 93
Code
function fusion_apply_rule_load($rid = NULL) {
$rids = isset($rid) ? array(
$rid,
) : array();
$rules = fusion_apply_rule_load_multiple($rids);
return $rules ? reset($rules) : FALSE;
}