You are here

function oauth_common_init in OAuth 1.0 7.4

Implements hook_init().

Adds the OAuth library. This is needed until Libraries API does it.

See also

http://drupal.org/node/1092270

File

./oauth_common.module, line 23

Code

function oauth_common_init() {
  if (!file_exists(libraries_get_path('oauth') . '/OAuth.php')) {
    module_disable(array(
      'oauth_common',
    ));
  }
  else {
    require_once libraries_get_path('oauth') . '/OAuth.php';
  }
}