function dropbox_client_requirements in Dropbox Client 7.4
Implements hook_requirements().
File
- ./
dropbox_client.install, line 10
Code
function dropbox_client_requirements($phase) {
$requirements = array();
if ($phase == 'runtime') {
$requirements['dropbox_client_app_keys'] = array(
'title' => t('Dropbox app configuration'),
);
if (!variable_get('dropbox_client_key', FALSE) || !variable_get('dropbox_client_secret', FALSE)) {
$requirements['dropbox_client_app_keys']['severity'] = REQUIREMENT_ERROR;
$requirements['dropbox_client_app_keys']['value'] = t('Dropbox app configuration not OK. Please see the <a href="@url"> configuration page for more info</a>', array(
'@url' => url('admin/config/content/dropbox_client/settings'),
));
}
else {
$requirements['dropbox_client_app_keys']['severity'] = REQUIREMENT_OK;
$requirements['dropbox_client_app_keys']['value'] = t('Dropbox client configuration OK.');
}
}
return $requirements;
}