function rules_config_load_multiple

Load rule configurations from the database.

This function should be used whenever you need to load more than one entity from the database. The entities are loaded into memory and will not require database access if loaded again during the same page request.

Parameters

array|false $names: An array of rules configuration names or FALSE to load all.

array $conditions: An array of conditions in the form 'field' => $value.

Return value

array An array of rule configurations indexed by their ids.

See also

hook_entity_info()

RulesEntityController

7 calls to rules_config_load_multiple()
drush_rules_list in ./rules.drush.inc
Get a list of all rules.
RulesEntityController::delete in includes/rules.core.inc
Overridden to also delete tags and events.
RulesEntityController::save in includes/rules.core.inc
RulesEventSet::rebuildEventCache in includes/rules.plugins.inc
Rebuilds the event cache.
rules_admin_settings_integrity_check_submit in rules_admin/rules_admin.inc
Form submit callback to check the integrity of all configurations.

... See full list

File

./rules.module, line 923

Code

function rules_config_load_multiple($names = array(), $conditions = array()) {
    return entity_load_multiple_by_name('rules_config', $names, $conditions);
}