if ($formName == 'CRM_Export_StateMachine_Standalone') {
$componentName = ['CRM', $this->controller->get('entity')];
}
- $entityShortname = $componentName[1]; // Contact
+ // Contact
+ $entityShortname = $componentName[1];
$entityDAOName = $entityShortname;
break;
}
]);
$this->addButtons([
- [
- 'type' => 'next',
- 'name' => ts('Continue'),
- 'spacing' => ' ',
- 'isDefault' => TRUE,
- ],
- [
- 'type' => 'cancel',
- 'name' => ts('Cancel'),
- ],
- ]
- );
+ [
+ 'type' => 'next',
+ 'name' => ts('Continue'),
+ 'spacing' => ' ',
+ 'isDefault' => TRUE,
+ ],
+ [
+ 'type' => 'cancel',
+ 'name' => ts('Cancel'),
+ ],
+ ]);
$this->addFormRule(['CRM_Export_Form_Select', 'formRule'], $this);
}