function submitted() { if (isset($_GET['old']) && $_GET['old']) { return true; } return parent::submitted(); }
function getSearchValues() { $values = parent::getSearchValues(); //convert spam status to search spam field if (isset($values['status']) && $values['status'] == 2) { $values['spam'] = 1; unset($values['status']); } return $values; }
function submitted() { if (isset($_REQUEST['action']) && $_REQUEST['action'] != AMP_TEXT_SEARCH) { $search_request = false; } if ($search_request) { return 'search'; } return parent::submitted(); }
function submitted() { $search_request = isset($_REQUEST['type']) && $_REQUEST['type'] || isset($_REQUEST['class']) && $_REQUEST['class'] || isset($_REQUEST['section']) && $_REQUEST['section']; if (isset($_REQUEST['action']) && array_search($_REQUEST['action'], array(AMP_TEXT_LIST, AMP_TEXT_SEARCH)) == FALSE) { $search_request = false; } if ($search_request) { return 'search'; } return parent::submitted(); }