/[drupal]/contributions/modules/splash/splash.install
ViewVC logotype

Contents of /contributions/modules/splash/splash.install

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


Revision 1.1 - (show annotations) (download) (as text)
Mon Mar 17 13:56:37 2008 UTC (20 months, 1 week ago) by fokke
Branch: MAIN
CVS Tags: DRUPAL-6--2-5, DRUPAL-6--2-4, DRUPAL-6--2-3, DRUPAL-6--2-2, DRUPAL-6--2-1, DRUPAL-6--2-0, HEAD
Branch point for: DRUPAL-5, DRUPAL-6--2
File MIME type: text/x-php
*** empty log message ***
1 <?php
2
3 function splash_update_6200() {
4 $ret = array();
5
6 // Old variables
7 $redirect = variable_get('splash_redirect', NULL);
8 $cookie = variable_get('splash_cookie', NULL);
9 $frequency = variable_get('splash_frequency', NULL);
10 $code = variable_get('splash_code', NULL);
11
12 // New variables
13 variable_set('splash_when', array(
14 'frequency' => (!is_string($frequency) || strlen($frequency) == 0) ? 'always' : $frequency,
15 'cookie' => (!is_string($cookie) || strlen($frequency) == 0) ? 'splash_cookie' : $cookie,
16 ));
17 variable_set('splash_what', array(
18 'content' => (!is_string($redirect) || strlen($redirect) == 0) ? '' : $redirect,
19 ));
20
21 // Code has been moved to Conditions module
22 if (is_string($code) && strlen($code) > 0) {
23 drupal_set_message(t('Splash - Install the conditions module to trigger the display by the PHP code you had set: %code', array('%code' => $code)));
24 }
25
26 return $ret;
27 }
28
29 ?>

  ViewVC Help
Powered by ViewVC 1.1.2