You are here

function content_access_page in Content Access 5

Same name and namespace in other branches
  1. 6 content_access.admin.inc \content_access_page()
  2. 7 content_access.admin.inc \content_access_page()
1 string reference to 'content_access_page'
content_access_menu in ./content_access.module

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;
}