/**
  * build the form elements for an email object
  *
  * @return void
  * @access public
  */
 public function buildQuickForm()
 {
     CRM_Contact_Form_Edit_CommunicationPreferences::buildQuickForm($this);
     $this->addFormRule(array('CRM_Contact_Form_Edit_CommunicationPreferences', 'formRule'), $this);
     $buttons = array(array('type' => 'upload', 'name' => ts('Save'), 'isDefault' => TRUE), array('type' => 'cancel', 'name' => ts('Cancel')));
     $this->addButtons($buttons);
 }
 /**
  * build the form elements for communication preferences
  *
  * @return void
  * @access public
  */
 public function buildQuickForm()
 {
     parent::buildQuickForm();
     CRM_Contact_Form_Edit_CommunicationPreferences::buildQuickForm($this);
     $this->addFormRule(array('CRM_Contact_Form_Edit_CommunicationPreferences', 'formRule'), $this);
 }