View source
<?php
function addtocopy_uninstall() {
variable_del('addtocopy_selector');
variable_del('addtocopy_minlen');
variable_del('addtocopy_htmlcopytxt');
variable_del('addtocopy_addcopyfirst');
variable_del('addtocopy_library_path');
}
function addtocopy_requirements($phase) {
$requirements = array();
$t = get_t();
if ($phase == 'runtime') {
if ($addtocopy_version = _addtocopy_library_version()) {
$requirements['addtocopy'] = array(
'title' => $t('Add to Copy library'),
'value' => $addtocopy_version,
'severity' => REQUIREMENT_OK,
);
}
else {
$requirements['addtocopy'] = array(
'title' => $t('Add to Copy library'),
'value' => $t('Add to Copy library is missing'),
'severity' => REQUIREMENT_ERROR,
);
}
}
return $requirements;
}