You are here

function prev_next_node_insert in Previous/Next API 7.2

Same name and namespace in other branches
  1. 7 prev_next.module \prev_next_node_insert()

Implements hook_node_insert().

File

./prev_next.module, line 349
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_node_insert($node) {
  $types = _prev_next_node_types();
  if (in_array($node->type, $types)) {
    _prev_next_add($node->nid);
  }
}