You are here

function fusion_apply_rule_load in Fusion Accelerator 7

Same name and namespace in other branches
  1. 7.2 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.

8 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_delete_confirm in fusion_apply/fusion_apply_rules.inc
Menu callback; displays the delete confirmation for a skins rule.
fusion_apply_rule_edit in fusion_apply/fusion_apply_ui.rules.inc
Form builder for the rule configuration form.

... See full list

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;
}