function node_expire_update_6200 in Node expire 7.2
Same name and namespace in other branches
- 8 node_expire.install \node_expire_update_6200()
- 6.2 node_expire.install \node_expire_update_6200()
- 7 node_expire.install \node_expire_update_6200()
Implements hook_update_N().
Include the max date allowed values. Only new nodes (or edited ones) will be affected.
File
- ./
node_expire.install, line 83 - 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';
// hook_update_N() no longer returns a $ret array. Instead, return
// nothing or a translated string indicating the update ran successfully.
// See http://drupal.org/node/224333#update_sql. /* $update */
return t('TODO Add a descriptive string here to show in the UI.');
}