You are here

function theme_rules_admin_configuration_status in Rules 6

Returns the given status rendered as html.

2 theme calls to theme_rules_admin_configuration_status()
rules_admin_overview_table in rules_admin/rules_admin.inc
Returns a table of rules filtered by the given parameters
rules_admin_sets_overview in rules_admin/rules_admin.sets.inc

File

rules_admin/rules_admin.inc, line 332

Code

function theme_rules_admin_configuration_status($status) {
  if ($status == 'altered') {
    $help = t('This rule has been provided by a module, but has been modified.');
    return '<span title="' . $help . '">' . t('Modified') . '</span>';
  }
  else {
    if ($status == 'fixed') {
      $help = t("This rule has been provided by a module and can't be customized.");
      return '<span title="' . $help . '">' . t('Fixed') . '</span>';
    }
    else {
      if ($status == 'custom') {
        $help = t('A custom defined rule.');
        return '<span title="' . $help . '">' . t('Custom') . '</span>';
      }
    }
  }
  $help = t('This rule has been provided by a module.');
  return '<span title="' . $help . '">' . t('Default') . '</span>';
}