Newer
Older
* Provides install, upgrade and un-install functions for fiftyone_degrees.
*/
function fiftyone_degrees_requirements($phase) {
$requirements = array();
// If the library is not installed then throw an error.
if (!$library['installed']) {
'description' => 'You need to download the <a href="' . $library['download url'] . '" >51Degrees library</a>, extract the archive and place the library in the sites/all/libraries directory on your server.',
'severity' => REQUIREMENT_ERROR,
);
}
}
return $requirements;
}
/**
* Implements hook_uninstall().
*/
function fiftyone_degrees_uninstall() {
variable_del('fiftyone_degrees_rules');
variable_del('fiftyone_degrees_settings');
variable_del('fiftyone_degrees_licence_key');