You are here

function prev_next_init in Previous/Next API 7.2

Implements hook_init().

File

./prev_next.module, line 485
The previous next module indexes the previous and next nodes based upon user-selectable criteria and stores this index in the database for faster retrieval later.

Code

function prev_next_init() {
  if (!empty($_SESSION['prev_next_remove_nids'])) {
    foreach ($_SESSION['prev_next_remove_nids'] as $nid) {
      _prev_next_remove($nid);
    }
    unset($_SESSION['prev_next_remove_nids']);
  }
}