function linkedin_requirements in LinkedIn Integration 7
Same name and namespace in other branches
- 6 linkedin.install \linkedin_requirements()
Implements hook_requirements().
File
- ./
linkedin.install, line 68 - Install, update and uninstall functions for the linkedin module.
Code
function linkedin_requirements($phase) {
$requirements = array();
$t = get_t();
$has_curl = function_exists('curl_init');
$requirements['curl'] = array(
'title' => $t('cURL'),
'value' => $has_curl ? $t('Enabled') : $t('Not found'),
);
if (!$has_curl) {
$requirements['curl']['severity'] = REQUIREMENT_ERROR;
$requirements['curl']['description'] = $t('Linkedin module could not be installed because the PHP <a href="@curl_url">cURL</a> library is not available.', array(
'@curl_url' => 'http://php.net/manual/en/curl.setup.php',
));
}
return $requirements;
}