You are here

function comment_og_settings in Comment OG 6

Implementation of hook_settings().

1 string reference to 'comment_og_settings'
comment_og_menu in ./comment_og.module
Implementation of hook_menu().

File

./comment_og.module, line 27

Code

function comment_og_settings() {
  $form['comment_og_admin_delete'] = array(
    '#type' => 'checkbox',
    '#title' => t('Group administrators can delete comments posted into their groups'),
    '#default_value' => variable_get('comment_og_admin_delete', 1),
  );
  $form['comment_og_admin_edit'] = array(
    '#type' => 'checkbox',
    '#title' => t('Group administrators can edit comments posted into their groups'),
    '#default_value' => variable_get('comment_og_admin_edit', 1),
  );
  $form['comment_og_admin_edit_msg'] = array(
    '#type' => 'textfield',
    '#title' => t('Message to append to comments edited by group administrators'),
    '#default_value' => variable_get('comment_og_admin_edit_msg', comment_og_admin_edit_msg()),
    '#description' => t('Use the place holder %user to insert the user name of the administrator performing the editing. Example: ', array(
      '%user' => '%user',
    )) . comment_og_admin_edit_msg(),
  );
  $form['comment_og_admin_nonmember_access'] = array(
    '#type' => 'checkbox',
    '#title' => t('Group administrators can enable/disable allowing non-members to post comments into their groups'),
    '#default_value' => variable_get('comment_og_admin_nonmember_access', FALSE),
    '#description' => t('Allowance of non-members to post into groups may be configured per group. The default setting for each group is to disabled non-member comment posts. Enabling or disabling this option does not reset any changes to this setting made by group administrators in a group.'),
  );
  return system_settings_form($form);
}