function node_limit_user_node_limit_element in Node Limit 8
Same name and namespace in other branches
- 6 node_limit_user/node_limit_user.module \node_limit_user_node_limit_element()
- 7 node_limit_user/node_limit_user.module \node_limit_user_node_limit_element()
Implements hook_node_limit_element().
File
- old/
node_limit_user/ node_limit_user.module, line 55 - Module to restrict the number of nodes by user.
Code
function node_limit_user_node_limit_element($lid = 0) {
$limit = node_limit_user_node_limit_load($lid);
$name = !empty($limit['node_limit_user']['name']) ? $limit['node_limit_user']['name'] : '';
return array(
'node_limit_user' => array(
'#type' => 'textfield',
'#title' => t('User'),
'#autocomplete_path' => 'user/autocomplete',
'#default_value' => $name,
),
);
}