You are here

function node_expire_update_6200 in Node expire 6.2

Same name and namespace in other branches
  1. 8 node_expire.install \node_expire_update_6200()
  2. 7.2 node_expire.install \node_expire_update_6200()
  3. 7 node_expire.install \node_expire_update_6200()

Implementation of hook_update_N().

Include the max date allowed values. Only new nodes (or edited ones) will be affected

File

./node_expire.install, line 72
Install, uninstall and update the module.

Code

function node_expire_update_6200() {
  if ($ntypes = variable_get('node_expire_ntypes', array())) {
    foreach ($ntypes as $ntype => $default) {
      $ntypes[$ntype] = array(
        'default' => $default,
        'max' => '',
      );
    }
    variable_set('node_expire_ntypes', $ntypes);
  }
  $update[] = 'Include the max date allowed values. Only new nodes (or edited ones) will be affected';
  return $update;
}