You are here

function edit_limit_node_count in Edit Limit 6

Same name and namespace in other branches
  1. 7 edit_limit.module \edit_limit_node_count()

Helper function to get the number of times a particular node has been edited.

2 calls to edit_limit_node_count()
edit_limit_nodeapi in ./edit_limit.module
Implementation of hook_nodeapi().
_edit_limit_user_acccess in ./edit_limit.module
Helper function to perform additional access checks after node_access() has been checked.
1 string reference to 'edit_limit_node_count'
edit_limit_nodeapi in ./edit_limit.module
Implementation of hook_nodeapi().

File

./edit_limit.module, line 207
edit_limit.module Primary module file for Edit Limit. This contains all the hooks needed to run the module.

Code

function edit_limit_node_count($nid) {
  $count = db_result(db_query("SELECT count FROM {edit_limit_node_count} WHERE nid=%d", $nid));
  $count = empty($count) ? 0 : $count;
  return $count;
}