Permalink
Browse files

Removing unused parameters of tagIsInvalid()

  • Loading branch information...
1 parent 108505a commit ad28228495560f6a610f079f705a82486cc76e04 @lorenzo lorenzo committed Jul 16, 2011
Showing with 3 additions and 5 deletions.
  1. +3 −5 lib/Cake/View/Helper/FormHelper.php
@@ -277,14 +277,12 @@ protected function _isRequiredField($validateProperties) {
}
/**
- * Returns false if given FORM field has no errors. Otherwise it returns the validation message
+ * Returns false if given form field described by the current entity has no errors.
+ * Otherwise it returns the validation message
*
- * @param string $model Model name as a string
- * @param string $field Fieldname as a string
- * @param integer $modelID Unique index identifying this record within the form
* @return boolean True on errors.
*/
- public function tagIsInvalid($model = null, $field = null, $modelID = null) {
+ public function tagIsInvalid() {
$entity = $this->entity();
$model = array_shift($entity);
if (!empty($entity) && isset($this->validationErrors[$model])) {

0 comments on commit ad28228

Please sign in to comment.