You are here

function user_relationship_node_access_form_user_relationships_admin_settings_alter in User Relationships 7

Sitewide settings.

File

user_relationship_node_access/user_relationship_node_access.module, line 267
Allows content posted to be shared with users in one's social network

Code

function user_relationship_node_access_form_user_relationships_admin_settings_alter(&$form, &$form_state) {
  $form['node_access'] = array(
    '#type' => 'fieldset',
    '#title' => t('Share content'),
    '#group' => 'settings',
  );
  $form['node_access']['user_relationship_node_access_allowed_types'] = array(
    '#title' => t('Enabled content types'),
    '#type' => 'checkboxes',
    '#default_value' => variable_get('user_relationship_node_access_allowed_types', array()),
    '#options' => node_type_get_names(),
    '#multiple' => TRUE,
    '#description' => t('Add a check mark next to each content type that users should be allowed to share with their established relationships. Only these content types will have "Share content" options on their content creation and edit forms.'),
  );
}