You are here

function simple_access_owner_revoke_form in Simple Access 7.2

Same name and namespace in other branches
  1. 8.3 simple_access.module \simple_access_owner_revoke_form()
  2. 6.2 simple_access.module \simple_access_owner_revoke_form()

Configure revoke content owner permissions.

File

./simple_access.module, line 911
This module allows administrators to make nodes viewable by specific 'access groups'. Each access group can contain any number of roles. If a node is not assigned to any access groups, it will remain viewable by all users.

Code

function simple_access_owner_revoke_form($settings = array()) {
  $form = array();
  $form['sa_owner_permissions'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Revoke owner permissions'),
    '#default_value' => empty($settings['sa_owner_permissions']) ? array() : $settings['sa_owner_permissions'],
    '#options' => array(
      'sa_view' => t('View'),
      'sa_update' => t('Update'),
      'sa_delete' => t('Delete'),
    ),
    '#description' => t('Select permissions to revoke for the content owner'),
  );
  return $form;
}