function theme_rules_log

Themes the rules log debug output.

File

ui/ui.theme.inc, line 221

Code

function theme_rules_log($variables) {
    $element = $variables['element'];
    drupal_add_css(drupal_get_path('module', 'rules') . '/ui/rules.ui.css');
    // Add jquery ui core css and functions, which are needed for the icons.
    drupal_add_library('system', 'ui');
    drupal_add_js(drupal_get_path('module', 'rules') . '/ui/rules.debug.js');
    $output = '<div class="rules-debug-log">';
    $output .= '<h3 class="rules-debug-log-head">';
    $output .= '<span class="rules-debug-open-main rules-debug-collapsible-link">';
    $output .= '<span unselectable="on" class="ui-icon ui-icon-triangle-1-e rules-debug-icon-open">&nbsp;</span>';
    $output .= t('Rules evaluation log');
    $output .= '</span>';
    $output .= '</span>';
    $output .= '<span class="rules-debug-open-all rules-debug-collapsible-link">-' . t('Open all') . '-<span>';
    $output .= '</h3>';
    $output .= '<div>';
    $output .= $element['#children'];
    $output .= '</div>';
    $output .= '</div>';
    return $output;
}