You are here

public function CerUIController::operationForm in Corresponding Entity References 7.3

Builds the operation form.

For the export operation a serialized string of the entity is directly shown in the form (no submit function needed).

Overrides EntityDefaultUIController::operationForm

File

includes/CerUIController.inc, line 49

Class

CerUIController
Contains the controller class for CER's UI (i.e., preset management pages), used by Entity API.

Code

public function operationForm($form, &$form_state, $entity, $action) {
  switch ($action) {
    case 'delete':
      return confirm_form($form, t('Are you sure you want to delete this preset?'), $this->path, t('@left will no longer synchronize with @right.', $entity->label_variables));
    default:
      return parent::operationForm($form, $form_state, $entity, $action);
  }
}