You are here

function om_user_tools in OM Tools 7.2

Same name and namespace in other branches
  1. 8.2 tools/user/user.inc \om_user_tools()
  2. 6.2 tools/user/user.inc \om_user_tools()

User Tools Form

File

tools/user/user.inc, line 22
OM Tools - User Tools for Drupal

Code

function om_user_tools(&$form, $user_defaults = array()) {

  // OM User Tools
  $user_tools = array();
  $user_tools['user_login_block'] = array(
    '#type' => 'fieldset',
    '#title' => t('User Login Block Form'),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
  );
  $user_tools['user_login_block'] += om_user_login_block($user_defaults);
  $user_tools['user_login'] = array(
    '#type' => 'fieldset',
    '#title' => t('User Login Page Form'),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
  );
  $user_tools['user_login'] += om_user_login($user_defaults);
  $user_tools['user_register'] = array(
    '#type' => 'fieldset',
    '#title' => t('User Register Page Form'),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
  );
  $user_tools['user_register'] += om_user_register($user_defaults);
  $user_tools['user_pass'] = array(
    '#type' => 'fieldset',
    '#title' => t('User New Password Request Page Form'),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
  );
  $user_tools['user_pass'] += om_user_pass($user_defaults);
  $form['om_user_tools'] = array(
    '#type' => 'fieldset',
    '#title' => t('User'),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
  );
  $form['om_user_tools'] += $user_tools;
  return $form;
}