You are here

function restws_module_implements_alter in RESTful Web Services 7

Same name and namespace in other branches
  1. 7.2 restws.module \restws_module_implements_alter()

Implements hook_module_implements_alter().

File

./restws.module, line 390
RESTful web services module.

Code

function restws_module_implements_alter(&$implementations, $hook) {

  // Make sure that restws runs last.
  // @todo remove entity_info_alter once https://drupal.org/node/1780646 is fixed.
  if ($hook == 'menu_alter' || $hook == 'entity_info_alter') {
    $group = $implementations['restws'];
    unset($implementations['restws']);
    $implementations['restws'] = $group;
  }
}