}
}
else {
- $form->addDefaultButtons(ts('Make PDF Letters'));
+ $form->addButtons(array(
+ array(
+ 'type' => 'submit',
+ 'name' => ts('Make PDF Letters'),
+ 'isDefault' => TRUE,
+ ),
+ array(
+ 'type' => 'cancel',
+ 'name' => ts('Done'),
+ ),
+ ));
}
$form->addFormRule(array('CRM_Contact_Form_Task_PDFLetterCommon', 'formRule'), $form);
public function buildQuickForm() {
//enable form element
$this->assign('suppressForm', FALSE);
-
- // use contact form as a base
CRM_Contact_Form_Task_PDFLetterCommon::buildQuickForm($this);
-
- $this->addButtons(array(
- array(
- 'type' => 'submit',
- 'name' => ts('Make PDF Letters'),
- 'isDefault' => TRUE,
- ),
- array(
- 'type' => 'cancel',
- 'name' => ts('Done'),
- ),
- )
- );
-
}
/**