footer_message.install 511 B

123456789101112131415
  1. <?php
  2. /**
  3. * Implements hook_enable().
  4. * Provides an upgrade path from Drupal 6.x sites to Drupal 7.x,
  5. * checking to see if the site_footer variable has been set for a D6 site,
  6. * if so - grab that value and pass to our new footer variable.
  7. */
  8. function footer_message_enable() {
  9. $old_footer = variable_get('site_footer', FALSE);
  10. $new_footer = variable_get('footer_message_msg', FALSE);
  11. if (($new_footer == FALSE) && $old_footer) {
  12. variable_set('footer_message_msg', array('value' => $old_footer));
  13. }
  14. }