function rule_element_load in Rules 6
File
- rules_admin/
rules_admin.module, line 251 - Rules administration UI
Code
function rule_element_load($id, $rule_name) {
$proxy = rule_load($rule_name);
$element = $proxy
->get_element($id);
return is_array($element) ? $element + array(
'#id' => intval($id),
) : FALSE;
}