*/
public function preProcess() {
parent::preProcess();
- $rows = array();
+ $rows = [];
// display name and activity details of all selected contacts
$activityIDs = implode(',', $this->_activityHolderIds);
$dao = CRM_Core_DAO::executeQuery($query);
while ($dao->fetch()) {
- $rows[] = array(
+ $rows[] = [
'subject' => $dao->subject,
'activity_type' => $dao->activity_type,
'activity_date' => $dao->activity_date,
'display_name' => $dao->display_name,
- );
+ ];
}
$this->assign('rows', $rows);
}
* Build the form object.
*/
public function buildQuickForm() {
- $this->addButtons(array(
- array(
+ $this->addButtons([
+ [
'type' => 'done',
'name' => ts('Done'),
'isDefault' => TRUE,
- ),
- ));
+ ],
+ ]);
}
}