function node_limit_role_node_limit_element in Node Limit 6
Same name and namespace in other branches
- 8 old/node_limit_role/node_limit_role.module \node_limit_role_node_limit_element()
- 7 node_limit_role/node_limit_role.module \node_limit_role_node_limit_element()
Implementation of hook_node_limit_element().
File
- node_limit_role/
node_limit_role.module, line 58 - Module to restrict the number of nodes by role.
Code
function node_limit_role_node_limit_element($lid = 0) {
$limit = node_limit_role_node_limit_load($lid);
return array(
'node_limit_role' => array(
'#type' => 'select',
'#title' => t('Role'),
'#options' => user_roles(),
'#default_value' => $limit['node_limit_role']['rid'],
),
);
}