function prev_next_nid_next in Previous/Next API 7.2
Same name and namespace in other branches
- 6 prev_next.module \prev_next_nid_next()
- 7 prev_next.module \prev_next_nid_next()
Module function to get the next node id of the current node.
Parameters
string $nid: The current node id.
Return value
string
1 call to prev_next_nid_next()
- prev_next_nid in ./
prev_next.module - Callable API function to get the next/prev nid of a given nid
File
- ./
prev_next.module, line 407 - 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_nid_next($nid) {
return db_query("SELECT next_nid\n FROM {prev_next_node}\n WHERE nid = :nid", array(
':nid' => $nid,
))
->fetchField();
}