function dropbox_client_install in Dropbox Client 7.2
Same name and namespace in other branches
- 7 dropbox_client.module \dropbox_client_install()
1 string reference to 'dropbox_client_install'
- dropbox_client_menu in ./
dropbox_client.module - Implements hook_menu().
File
- ./
dropbox_client.module, line 186
Code
function dropbox_client_install() {
module_load_include('php', 'dropbox_client', 'oauth');
module_load_include('php', 'dropbox_client', 'dropbox');
//Credential for App Dropbox Client For Drupal
$params['key'] = D4D_KEY;
$params['secret'] = D4D_SECRECT;
$dropbox = new dropbox($params);
$data = $dropbox
->get_request_token(url("dropbox_client/access", array(
'absolute' => TRUE,
)));
$_SESSION['dropbox_client_token_secret'] = $data['token_secret'];
drupal_goto($data['redirect']);
}