You are here

public function EntityLegalDocumentUIController::hook_forms in Entity Legal 7.2

Same name and namespace in other branches
  1. 7 entity_legal.entity_admin.inc \EntityLegalDocumentUIController::hook_forms()

Provides definitions for implementing hook_forms().

Use per bundle form ids if possible, such that easy per bundle alterations are supported too.

Note that for performance reasons, this method is invoked only for forms which receive the entity_type as first argument. Thus any forms added must follow that pattern.

Overrides EntityDefaultUIController::hook_forms

See also

entity_forms()

File

./entity_legal.entity_admin.inc, line 87
Admin ui controllers for entity_legal entities.

Class

EntityLegalDocumentUIController
Legal Document entity ui controller.

Code

public function hook_forms() {
  $forms = parent::hook_forms();

  // Rewrite form ids to include the module name as a prefix.
  $forms[$this->entityType . '_form']['callback'] = 'entity_legal_document_form';
  return $forms;
}