function node_limit_user_node_limit_element in Node Limit 6
Same name and namespace in other branches
- 8 old/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()
Implementation of hook_node_limit_element().
File
- node_limit_user/
node_limit_user.module, line 58 - 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);
return array(
'node_limit_user' => array(
'#type' => 'textfield',
'#title' => t('User'),
'#autocomplete_path' => 'user/autocomplete',
'#default_value' => $limit['node_limit_user']['name'],
),
);
}