You are here

function services_views_services_request_preprocess_alter in Services Views 7

Implements hook_services_request_preprocess_alter().

Pass "view info" to arguments so view name and display_id can be accessed.

File

./services_views.module, line 256
Provides a generic but powerful API for web services.

Code

function services_views_services_request_preprocess_alter($controller, &$args, $options) {
  if (isset($controller['view info'])) {
    array_unshift($args, $controller['view info']);
    $args[0]['args'] = array();
    if (!empty($_GET['args'])) {
      $args[0]['args'] = $_GET['args'];
    }
  }
}