You are here

function merci_get_controller in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3

3 calls to merci_get_controller()
EntityReferenceBehavior_Merci::validate in merci_entityref_behavior/plugins/behavior/EntityReferenceBehavior_Merci.class.php
Act on validating an entity reference field.
MerciLineItemController::validate in merci_line_item/includes/entity.controller.inc
merci_line_item_merci_line_item_validate in merci_line_item/merci_line_item.module

File

merci_core/merci_core.module, line 72

Code

function merci_get_controller($entity, $target_type, $context) {
  $class = 'MerciDefaultController';
  module_load_include('inc', 'merci_core', 'reservation.handler');
  if (class_exists($class)) {
    return call_user_func(array(
      $class,
      'getInstance',
    ), $entity, $target_type, $context);
  }
}