function node_limit_user_node_limit_sql in Node Limit 7
Same name and namespace in other branches
- 8 old/node_limit_user/node_limit_user.module \node_limit_user_node_limit_sql()
- 6 node_limit_user/node_limit_user.module \node_limit_user_node_limit_sql()
Implements hook_node_limit_sql().
File
- node_limit_user/
node_limit_user.module, line 43 - Module to restrict the number of nodes by user.
Code
function node_limit_user_node_limit_sql($lid, SelectQuery $select) {
$limit = node_limit_user_node_limit_load($lid);
if (empty($limit)) {
return;
}
$select
->condition('uid', $limit['node_limit_user']['uid']);
}