rules.module

Version

1.1.2.25 (checked in on 2008/08/02 at 15:03:12 by fago)

Description

Rules engine module

Constants

Namesort iconDescription
RULES_ADMIN_PATH
RULES_ADMIN_RULE_PATH
RULES_ADMIN_SET_PATH
RULES_ADMIN_TRIGGER_PATH

Functions

Namesort iconDescription
rules_clear_cacheClears the rule set cache
rules_configureA simple helping function, which eases the creation of rules Example use case: $conditions = rules_configure('OR', $condition1, conditions2);
rules_elementsImplementation of hook_elements() Defines default values for all available properties of rules's element types
rules_element_invokeInvokes an element specific function. E.g. this is used for invoking actions.
rules_enable_itemsUsed to inform the rules engine about an added item type, so it can create the db table if necessary
rules_error_missing_implementationShows an error message, that a module is missing.
rules_evaluate_elementsEvaluates the elements in a recursive way The elements are a tree of rules, conditions, actions and logical operations (AND, OR,..)
rules_execute_actionExecution handler for actions
rules_execute_andExecution handler for the AND element Evaluates to TRUE if all children evaluate to TRUE..
rules_execute_conditionExecution handler for conditions Note: An condition may not alter arguments
rules_execute_elementExecutes the element by invoking the element type's execution handler
rules_execute_orExecution handler for the OR element Evaluates to TRUE if at least one children evaluate to TRUE..
rules_execute_ruleExecution handler for rules
rules_extract_propertyExtracts the property with the given name while keeping the keys
rules_flush_cachesImplementation of hook_flush_caches
rules_form_alterImplementation of hook_form_alter() Clear the cache when a module is deactivated
rules_get_actionsReturns info about all defined actions
rules_get_conditionsReturns info about all defined conditions
rules_get_configured_itemsGets all configured items, regardless if defined by the admin or by a module
rules_get_data_typesReturns info about all defined data types
rules_get_element_infoReturns the element info of the element
rules_get_element_labelGets the element's label
rules_get_eventsReturns info about all defined events
rules_get_event_setsReturns info about all events prefixed with 'event_' to be a set.
rules_get_itemsReturns info about all defined items
rules_get_item_defaultsReturns all defined item defaults $item_type Which defaults to return, e.g. 'rules', 'rule_sets' or 'states'
rules_get_rule_setReturns the rule set $set_name, which includes the set info and the rules. To improve performance rule sets are cached.
rules_get_rule_setsReturns info about all rule sets, which includes events prefixed with 'event_'.
rules_handle_error_msgHandles a error message. If the user has permission to administer the rules engine, show him the error. Otherwise just log it.
rules_includeIncludes rules specific include files
rules_initImplementation of hook_init()
rules_init_element_infoInitiates the element info property (#info) of an element (actions, conditions,..). Note that the element defaults will be applied before, if not yet done.
rules_invoke_eventInvokes configured rules for the given event
rules_invoke_rule_setInvokes configured rules for the given rule set
rules_item_deleteDeletes the given item from the database
rules_item_load
rules_item_saveDeletes the given item from the database
rules_item_title
rules_item_type_invokeInvoke an item type specific function, which will be item types base appended with _$op. The parameters given in $params will be passed to this function.
rules_logWrites the message into the log
rules_log_evaluated_ruleRemembers the currently evaluated rules. With this information, recursion is prevented
rules_log_evaluation_finishedChecks whether every rule evaluation is finished
rules_log_rule_is_evaluatedChecks whether the given rule is currently evaluated.
rules_menuImplementation of hook_menu().
rules_permImplementation of hook_perm().
rules_rules_item_infoImplementation of hook_rules_item_info
rules_rule_title
rules_show_logShows the log and clears it afterwards
rules_themeImplementation of hook_theme()
rules_use_actionConfigures an action for using in a rule
rules_use_conditionConfigures a condition for using in a rule
rules_use_elementConfigures an element of type $type with the further properties $params for using in a configuration
rule_element_load
rule_loadLoads the admin proxy of the rule with the given name
_rules_element_defaultsMakes sure the element defaults are applied
_rules_get_rule_setsActually retrieves all active rules bypassing the cache
_rules_get_rule_set_initializeInitializes inactive sets
_rules_include_get_files
_rules_log_set_invocationWrites to the log and marks the entry to be the first one of a just started set
_rules_rule_is_activeHelper for array_filter()
_rules_show_log
_rules_sort_childrenSorts the children of the elements