function _quiz_get_browser_content in Quiz 7
Same name and namespace in other branches
- 8.4 quiz.admin.inc \_quiz_get_browser_content()
 - 6.4 quiz.admin.inc \_quiz_get_browser_content()
 - 7.4 quiz.admin.inc \_quiz_get_browser_content()
 
Finds and returns all table rows with a certain class(HTML) in a table(HTML)
Parameters
$table: HTML string with a table
Return value
all table rows with a certain class in a table(html string)
2 calls to _quiz_get_browser_content()
- quiz_browser_ahah in ./
quiz.admin.inc  - AHAH handler for the question browser
 - quiz_results_mr_browser_ahah in ./
quiz.admin.inc  - AHAH handler for the results browser
 
File
- ./
quiz.admin.inc, line 2632  - 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];
}