You are here

function _node_limit_next_limit_id in Node Limit 6

Same name and namespace in other branches
  1. 8 old/node_limit.module \_node_limit_next_limit_id()
  2. 7 node_limit.module \_node_limit_next_limit_id()

Helper function to get the next available node limit id.

2 calls to _node_limit_next_limit_id()
node_limit_clone_limit in ./node_limit.module
Callback to clone a limit.
node_limit_limit_form_submit in ./node_limit.module
Submission hook for node_limit_limit_form.

File

./node_limit.module, line 475
Module to restrict the number of nodes a user or role may create.

Code

function _node_limit_next_limit_id() {
  $next_lid = db_result(db_query("SELECT (MAX(lid)+1) AS lid FROM {node_limit}"));
  return max($next_lid, 1);
}