You are here

publishcontent.install in Publish Content 7

Install file for the publish content module.

File

publishcontent.install
View source
<?php

/**
 * @file
 * Install file for the publish content module.
 */

/**
 * Copy tabs preference into new variable called publishcontent_method.
 */
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');
}

Functions

Namesort descending Description
publishcontent_update_7001 Copy tabs preference into new variable called publishcontent_method.