You are here

function drupalgap_email_registration_services_resources_alter in DrupalGap 7

Implements hook_services_resources_alter().

File

modules/drupalgap_email_registration/drupalgap_email_registration.module, line 6

Code

function drupalgap_email_registration_services_resources_alter(&$resources, &$endpoint) {

  // Override the normal user login callback.
  if (isset($resources['user']['actions']['login']['callback'])) {
    $resources['user']['actions']['login']['callback'] = 'drupalgap_email_registration_services_login';
  }
}