function node_limit_user_node_limit_sql in Node Limit 8
Same name and namespace in other branches
- 6 node_limit_user/node_limit_user.module \node_limit_user_node_limit_sql()
- 7 node_limit_user/node_limit_user.module \node_limit_user_node_limit_sql()
Implements hook_node_limit_sql().
File
- old/
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']);
}