Skip to content
Snippets Groups Projects
Commit dabf18d0 authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

removed obsolete code

parent 300c3253
No related branches found
No related tags found
No related merge requests found
......@@ -255,8 +255,6 @@ class CRM_Activity_Form_Search extends CRM_Core_Form {
}
}
$total = $cancel = 0;
$permission = CRM_Core_Permission::getPermission();
$tasks = array('' => ts('- actions -')) + CRM_Activity_Task::permissionedTaskTitles($permission);
......@@ -399,50 +397,6 @@ class CRM_Activity_Form_Search extends CRM_Core_Form {
$controller->run();
}
/**
* This function is used to add the rules (mainly global rules) for form.
* All local rules are added near the element
*
* @return None
* @access public
* @see valid_date
*/
function addRules() {
$this->addFormRule(array('CRM_Activity_Form_Search', 'formRule'));
}
/**
* global validation rules for the form
*
* @param array $fields posted values of the form
* @param array $errors list of errors to be posted back to the form
*
* @return void
* @static
* @access public
*/
static function formRule($fields) {
$errors = array();
if (!empty($errors)) {
return $errors;
}
return TRUE;
}
/**
* Set the default form values
*
* @access protected
*
* @return array the default array reference
*/
function setDefaultValues() { // TODO test?
$defaults = $this->_formValues;
return $defaults;
}
function fixFormValues() {
if (!$this->_force) {
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment