/[drupal]/contributions/modules/devel/devel_themer.install
ViewVC logotype

Contents of /contributions/modules/devel/devel_themer.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.7 - (show annotations) (download) (as text)
Mon Feb 2 20:40:50 2009 UTC (9 months, 3 weeks ago) by drewish
Branch: MAIN
Changes since 1.6: +2 -2 lines
File MIME type: text/x-php
#368133 by drewish: Remove trailing whitespace.
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 }

  ViewVC Help
Powered by ViewVC 1.1.2