You are here

function publishcontent_update_7001 in Publish Content 7

Copy tabs preference into new variable called publishcontent_method.

File

./publishcontent.install, line 11
Install file for the publish content module.

Code

function publishcontent_update_7001() {
  $new_method = variable_get('publishcontent_tabs', TRUE) ? PUBLISHCONTENT_METHOD_TABS : PUBLISHCONTENT_METHOD_NONE;
  variable_set('publishcontent_method', $new_method);
  variable_del('publishcontent_tabs');
}