You are here

function _quiz_get_browser_content in Quiz 7.4

Same name and namespace in other branches
  1. 8.4 quiz.admin.inc \_quiz_get_browser_content()
  2. 6.4 quiz.admin.inc \_quiz_get_browser_content()
  3. 7 quiz.admin.inc \_quiz_get_browser_content()

Finds and returns all table rows with a certain class(HTML) in a table(HTML)

TODO: DELETE

Parameters

$table: HTML string with a table

Return value

all table rows with a certain class in a table(html string)

File

./quiz.admin.inc, line 2477
Administrator interface for Quiz module.

Code

function _quiz_get_browser_content($table, $class) {
  $matches = array();
  $n_matches = preg_match('/<tr class="' . $class . '.*<\\/tr>/is', $table, $matches);
  return $matches[0];
}