You are here

function shurly_service_views_api in ShURLy 8

Same name and namespace in other branches
  1. 6 shurly_service/shurly_service.module \shurly_service_views_api()
  2. 7 shurly_service/shurly_service.module \shurly_service_views_api()

Implementation of hook_views_api. Notifies the Views module that we're compatible with a particular API revision.

File

shurly_service/shurly_service.module, line 138
Link ShURLy functionalities to services module. @todo add option to rate limit requests @todo add option for user api keys

Code

function shurly_service_views_api() {
  return [
    'api' => 3,
    'path' => drupal_get_path('module', 'shurly_service') . '/views',
  ];
}