function prev_next_enable in Previous/Next API 6
Same name and namespace in other branches
- 7.2 prev_next.install \prev_next_enable()
- 7 prev_next.install \prev_next_enable()
File
- ./
prev_next.install, line 20 - The (un)install and update code for the prev_next module.
Code
function prev_next_enable() {
$max_nid = db_result(db_query('SELECT MAX(nid) FROM {node}'));
variable_set('prev_next_index_nid', $max_nid);
if ($max_nid) {
drupal_set_message(t('Prev/Next will index from node %nid downward.', array(
'%nid' => $max_nid,
)));
}
}