View source
<?php
function swftools_uninstall() {
db_query("DELETE from {variable} WHERE name LIKE 'swftools%'");
}
function swftools_requirements($phase) {
$t = get_t();
$has_zlib = extension_loaded('zlib');
$requirements['swftools'] = array(
'title' => $t('Zlib library'),
'description' => $has_zlib ? '' : $t('Without the <a href="@url">zlib library</a> SWF Tools is unable to automatically determine the dimensions of compressed swf files. SWF Tools will work but the size of compressed swf content must be specified, otherwise the content may not appear in some browsers.', array(
'@url' => 'http://www.php.net/zlib',
)),
'value' => $has_zlib ? $t('Enabled') : $t('Not installed'),
'severity' => $has_zlib ? REQUIREMENT_OK : REQUIREMENT_WARNING,
);
return $requirements;
}