You are here

function _rules_attributes_add_class in Rules 6

3 calls to _rules_attributes_add_class()
theme_action in rules_admin/rules_admin.render.inc
Renders an action
theme_condition in rules_admin/rules_admin.render.inc
Renders a condition
theme_OR in rules_admin/rules_admin.render.inc
Themes the OR condition group

File

rules_admin/rules_admin.render.inc, line 115
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 _rules_attributes_add_class($attributes, $class) {
  if (isset($attributes['class'])) {
    $attributes['class'] .= ' ' . $class;
  }
  else {
    $attributes['class'] = $class;
  }
  return $attributes;
}