<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
class CRM_Custom_Form_Option extends CRM_Core_Form {
/**
- * the custom field id saved to the session for an update
+ * The custom field id saved to the session for an update
*
* @var int
* @access protected
protected $_fid;
/**
- * the custom group id saved to the session for an update
+ * The custom group id saved to the session for an update
*
* @var int
* @access protected
protected $_id;
/**
- * Function to set variables up before form is built
+ * Set variables up before form is built
*
* @param null
*
}
/**
- * This function sets the default values for the form. Note that in edit/view mode
+ * Set default values for the form. Note that in edit/view mode
* the default values are retrieved from the database
*
* @param null
}
/**
- * Function to actually build the form
+ * Build the form object
*
* @param null
*
}
/**
- * global validation rules for the form
+ * Global validation rules for the form
*
* @param array $fields posted values of the form
*
* @param $files
- * @param $form
+ * @param CRM_Core_Form $form
*
* @return array list of errors to be posted back to the form
* @static
case 'Float':
// case 'Money':
if (!CRM_Utils_Rule::numeric($fields["value"])) {
- $errors['value'] = ts('Please enter a valid number value.');
+ $errors['value'] = ts('Please enter a valid number.');
}
break;