function adaptivetheme_form_user_login_block_alter

cis7 alter.inc adaptivetheme_form_user_login_block_alter(&$form, &$form_state, $form_id)
cle7 alter.inc adaptivetheme_form_user_login_block_alter(&$form, &$form_state, $form_id)
elmsmedia7 alter.inc adaptivetheme_form_user_login_block_alter(&$form, &$form_state, $form_id)
icor7 alter.inc adaptivetheme_form_user_login_block_alter(&$form, &$form_state, $form_id)
meedjum_blog7 alter.inc adaptivetheme_form_user_login_block_alter(&$form, &$form_state, $form_id)
mooc7 alter.inc adaptivetheme_form_user_login_block_alter(&$form, &$form_state, $form_id)

hook_form_FORM_ID_alter() Modify the User Login Block Form

File

sites/all/themes/ulmus/adaptivetheme/at_core/inc/alter.inc, line 554
General alters.

Code

function adaptivetheme_form_user_login_block_alter(&$form, &$form_state, $form_id) {
  global $theme_key;
  $theme_name = $theme_key;
  if (at_get_setting('enable_extensions', $theme_name) === 1) {
    if (at_get_setting('enable_markup_overides', $theme_name) === 1) {
      if (at_get_setting('login_block_remove_links', $theme_name) === 1) {
        // Remove the links
        if (isset($form['links'])) {
          unset($form['links']);
        }
      }
      if (at_get_setting('login_block_remove_openid', $theme_name) === 1) {
        if (module_exists('openid')) {
          // Remove OpenID elements
          unset($form['openid_links']);
          unset($form['openid_identifier']);
          unset($form['openid.return_to']);
        }
      }
      if (at_get_setting('horizontal_login_block', $theme_name) === 1) {
        // Move the links to the end of the form, so they are after the submit,
        // OpenID really messes up the weight and I can't be bothered fighting
        // Drupal to deal with it.
        if (isset($form['links'])) {
          $form['links']['#weight'] = 100;
        }
      }
    }
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.