Skip to content

Commit

Permalink
removed lesson_clean_data_submitted() function. Removed all instances…
Browse files Browse the repository at this point in the history
… of its use before I did this
  • Loading branch information
michaelpenne committed Mar 10, 2005
1 parent d0b8bcd commit 1c97019
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions mod/lesson/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1143,31 +1143,6 @@ function lesson_check_nickname($name) {
return true;
}

/*******************************************************************/
function lesson_clean_data_submitted() {
// this function runs through all post/get data submitted to a page
// and runs clean_param on each
// returns an object

// get the data
if ($form = data_submitted()) {
// run through and clean each form value
// detect arrays as well and process them accordingly
foreach ($form as $valuename => $formvalue) {
if (is_array($formvalue)) {
foreach ($formvalue as $index => $formsubvalue) {
$formvalue[$index] = clean_param($formsubvalue, PARAM_CLEAN);
}
$form->$valuename = $formvalue;
} else {
$form->$valuename = clean_param($formvalue, PARAM_CLEAN);
}
}
}

return $form;
}

/// CDC-FLAG ///

?>

0 comments on commit 1c97019

Please sign in to comment.