function rules_element_load

Menu callback for loading rules configuration elements.

See also

RulesUIController::config_menu()

File

./rules.module, line 1345

Code

function rules_element_load($element_id, $config_name) {
    $config = rules_config_load($config_name);
    return $config->elementMap()
        ->lookup($element_id);
}