function prev_next_enable in Previous/Next API 7
Same name and namespace in other branches
- 6 prev_next.install \prev_next_enable()
- 7.2 prev_next.install \prev_next_enable()
@todo Please document this function.
See also
File
- ./
prev_next.install, line 25 - The (un)install and update code for the prev_next module.
Code
function prev_next_enable() {
$max_nid = db_query('SELECT MAX(nid) FROM {node}')
->fetchField();
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,
)));
}
}