publishcontent.install 405 B

123456789101112131415
  1. <?php
  2. /**
  3. * @file
  4. * Install file for the publish content module.
  5. */
  6. /**
  7. * Copy tabs preference into new variable called publishcontent_method.
  8. */
  9. function publishcontent_update_7001() {
  10. $new_method = variable_get('publishcontent_tabs', TRUE) ? PUBLISHCONTENT_METHOD_TABS : PUBLISHCONTENT_METHOD_NONE;
  11. variable_set('publishcontent_method', $new_method);
  12. variable_del('publishcontent_tabs');
  13. }