function linkedin_init in LinkedIn Integration 6
Same name and namespace in other branches
- 7 linkedin.module \linkedin_init()
File
- ./
linkedin.module, line 12
Code
function linkedin_init() {
if (!@(include_once variable_get('linkedin_liboauth_path', ''))) {
if (file_exists(drupal_get_path('module', 'oauth') . '/oauth.lib.php')) {
// Cope with OAuth module 6.x-2
variable_set('linkedin_liboauth_path', drupal_get_path('module', 'oauth') . '/oauth.lib.php');
}
elseif (file_exists(drupal_get_path('module', 'oauth_common') . '/lib/OAuth.php')) {
// Cope with OAuth module 6.x-3
variable_set('linkedin_liboauth_path', drupal_get_path('module', 'oauth_common') . '/lib/OAuth.php');
}
else {
drupal_set_message(t('Unable to find the OAuth library. Please check your settings for the Linkedin module.'), 'warning');
}
}
module_load_include('inc', 'linkedin');
module_load_include('pages.inc', 'linkedin');
}