You are here

function theme_simpletest_result_summary in SimpleTest 7

Same name and namespace in other branches
  1. 6.2 simpletest.pages.inc \theme_simpletest_result_summary()
  2. 7.2 simpletest.pages.inc \theme_simpletest_result_summary()

Add wrapper div with class based on summary status.

Return value

HTML output.

1 theme call to theme_simpletest_result_summary()
simpletest_result_form in ./simpletest.pages.inc
Test results form for $test_id.

File

./simpletest.pages.inc, line 366
Page callbacks for simpletest module.

Code

function theme_simpletest_result_summary($variables) {
  $form = $variables['form'];
  return '<div class="simpletest-' . ($form['#ok'] ? 'pass' : 'fail') . '">' . _simpletest_format_summary_line($form) . '</div>';
}