You are here

function simple_access_action_owner_grant_form in Simple Access 5.2

Configure grant content owner permissions

File

inc/workflow_ng.inc, line 79
Add workflow ng functionality to simple access

Code

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