You are here

function panopoly_users_configure_form in Panopoly Users 7

Configuration Form for Panopoly Magic.

1 string reference to 'panopoly_users_configure_form'
panopoly_users_apps_app_info in ./panopoly_users.module
Implements hook_apps_app_info().

File

./panopoly_users.module, line 22

Code

function panopoly_users_configure_form($form, &$form_state) {
  $form = array();
  $form['panopoly_users_login_destination'] = array(
    '#title' => t('Login Destination'),
    '#type' => 'textfield',
    '#required' => TRUE,
    '#default_value' => variable_get('panopoly_users_login_destination', '<front>'),
    '#description' => t('Where do you want to redirect users when the login using the standard login link? Use &lt;front&gt; for the Drupal frontpage.'),
  );
  $form['panopoly_users_remove_tabs'] = array(
    '#title' => t('Remove User Tabs'),
    '#type' => 'select',
    '#required' => TRUE,
    '#options' => array(
      0 => t('Do Not Remove'),
      1 => t('Remove'),
    ),
    '#default_value' => variable_get('panopoly_users_remove_tabs', 1),
    '#description' => t('Do you want to remove the login, reset password, and register tabs on the user page? These links will be transferred into the relevant field descriptions instead.'),
  );
  return system_settings_form($form);
}