function content_access_page in Content Access 5
Same name and namespace in other branches
- 6 content_access.admin.inc \content_access_page()
- 7 content_access.admin.inc \content_access_page()
1 string reference to 'content_access_page'
File
- ./
content_access.module, line 67
Code
function content_access_page($nid) {
$node = node_load($nid);
drupal_set_title(check_plain($node->title));
foreach (array(
'view',
'update',
'delete',
) as $i) {
$defaults[$i] = content_access_per_node_setting($i, $node);
}
$form = content_access_page_form($defaults, $node);
$form['node'] = array(
'#type' => 'value',
'#value' => $node,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Submit'),
'#weight' => 10,
);
return $form;
}