You are here

function theme_rules_icon in Rules 6

Themes a icon

1 call to theme_rules_icon()
theme_condition in rules_admin/rules_admin.render.inc
Renders a condition
4 theme calls to theme_rules_icon()
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
theme_rules_admin_rule_render in rules_admin/rules_admin.render.inc
Adds surrounding elements like headlines for conditions and actions and renders the rule

File

rules_admin/rules_admin.render.inc, line 110
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_rules_icon($name, $title = NULL) {
  $path = drupal_get_path('module', 'rules_admin') . '/icons/' . $name . '.png';
  return theme('image', $path, $name, $title ? $title : $name, array(
    'class' => 'rules-icon',
  ));
}