| 1 |
<?php
|
| 2 |
|
| 3 |
function devel_themer_requirements($phase) {
|
| 4 |
// Ensure translations don't break at install time
|
| 5 |
$t = get_t();
|
| 6 |
|
| 7 |
if ($phase == 'install' || $phase == 'runtime') {
|
| 8 |
// we need the Optimizer check function
|
| 9 |
drupal_load('module', 'devel');
|
| 10 |
|
| 11 |
if (!devel_is_compatible_optimizer()) {
|
| 12 |
$requirements['optimizer'] = array(
|
| 13 |
'title' => $t('Zend Optimizer'),
|
| 14 |
'description' => $t('You must disable or upgrade the php Zend Optimizer extension in order to enable this feature. The minimum required version is 3.2.8. Earlier versions of Zend Optimizer are <a href="!url">horribly buggy and segfault your Apache.', array('!url' => url('http://drupal.org/node/126098'))),
|
| 15 |
'severity' => REQUIREMENT_ERROR,
|
| 16 |
);
|
| 17 |
}
|
| 18 |
}
|
| 19 |
return isset($requirements) ? $requirements : array();
|
| 20 |
}
|
| 21 |
|
| 22 |
function devel_themer_update_6000() {
|
| 23 |
$ret = array();
|
| 24 |
drupal_install_schema('devel_themer');
|
| 25 |
return $ret;
|
| 26 |
}
|
| 27 |
|
| 28 |
// We are now using a file based cache to avoid max_packet_size warning.
|
| 29 |
function devel_themer_update_6001() {
|
| 30 |
$ret = array();
|
| 31 |
db_drop_table($ret, 'cache_devel_themer');
|
| 32 |
return $ret;
|
| 33 |
}
|