You are here

function photos_access_admin_settings in Album Photos 7.3

Admin form items.

1 string reference to 'photos_access_admin_settings'
photos_access_menu in photos_access/photos_access.module
Implements hook_menu().

File

photos_access/photos_access.module, line 35

Code

function photos_access_admin_settings() {
  $form = array();
  $form['privacy'] = array(
    '#type' => 'fieldset',
    '#title' => t('Privacy settings'),
    '#description' => t('Enabled photos access privacy settings for the following content types.'),
  );
  $types = node_type_get_types();
  foreach ($types as $type) {
    $form['privacy']['photos_access_' . $type->type] = array(
      '#title' => $type->name,
      '#type' => 'checkbox',
      '#default_value' => variable_get('photos_access_' . $type->type, 0),
    );
  }
  return system_settings_form($form);
}