You are here

function npop_update_7002 in Node pop-up 7

Change url variables update.

File

./npop.install, line 40
Contains install and update functions for npop module.

Code

function npop_update_7002() {

  // Set npop_change_urls variable values to 1 when npop_change_url is 1.
  $npop_change_url = variable_get('npop_change_url', 1);
  if ($npop_change_url) {
    $node_types = node_type_get_names();
    variable_set('npop_change_urls', array_keys($node_types));
  }

  // Delete npop_change_url variable.
  variable_del('npop_change_url');
}