function theme_action in Rules 6
Renders an action
File
- rules_admin/
rules_admin.render.inc, line 99 - Rules Admin UI Functions for rendering a rule. If a rule is viewed, it's passed to drupal_get_form so it is rendered with drupal_render().
Code
function theme_action($element) {
$attributes = isset($element['#attributes']) ? $element['#attributes'] : array();
$title = theme('rules_icon', 'action') . check_plain(rules_get_element_label($element));
$path = RULES_ADMIN_RULE_PATH . '/' . $element['#rule'] . '/edit/' . $element['#id'];
$options = array(
'attributes' => _rules_attributes_add_class($attributes, 'action'),
'query' => drupal_get_destination(),
'html' => TRUE,
);
return l($title, $path, $options);
}