function node_limit_og_node_limit_element in Node Limit 6
Implementation of hook_node_limit_element().
File
- node_limit_og/
node_limit_og.module, line 42 - Module to restrict the number of nodes within an organic group.
Code
function node_limit_og_node_limit_element($lid = 0) {
$limit = node_limit_og_node_limit_load($lid);
return array(
'node_limit_og' => array(
'#title' => t('Organic Group'),
'#type' => 'select',
'#options' => og_all_groups_options(),
'#default_value' => $limit['node_limit_og'],
),
);
}