*/
const LOCATION_BLOCKS = 1;
+ /**
+ * Explicitly declare the entity api name.
+ */
+ public function getDefaultEntity() {
+ return 'Domain';
+ }
+
+ /**
+ * Explicitly declare the form context.
+ */
+ public function getDefaultContext() {
+ return 'create';
+ }
+
public function preProcess() {
CRM_Utils_System::setTitle(ts('Organization Address and Contact Info'));
$breadCrumbPath = CRM_Utils_System::url('civicrm/admin', 'reset=1');
* @return void
*/
public function buildQuickForm() {
-
- $this->add('text', 'name', ts('Organization Name'), array('size' => 25), TRUE);
- $this->add('text', 'description', ts('Description'), array('size' => 25));
-
+ $this->addField('name', array('label' => ts('Organization Name')), TRUE);
+ $this->addField('description', array('label' => ts('Description'), 'size' => 30));
$this->add('text', 'email_name', ts('FROM Name'), CRM_Core_DAO::getAttribute('CRM_Core_DAO_Email', 'email'), TRUE);
-
$this->add('text', 'email_address', ts('FROM Email Address'), CRM_Core_DAO::getAttribute('CRM_Core_DAO_Email', 'email'), TRUE);
$this->addRule('email_address', ts('Domain Email Address must use a valid email address format (e.g. \'info@example.org\').'), 'email');