From locomo at

modalframe_register module modified to put the "Forgot password" form in a collapsed fieldset:

<?php
/**
* Menu callback; login form in child window.
*/
function modalframe_register_page_login_form() {
  // Send the Modal Frame javascript for child windows to the page.
  modalframe_child_js();
  // Get the forms from the user module.
  module_load_include('inc', 'user', 'user.pages');
  // Render the page contents.
  $output = drupal_get_form('user_login');
$output .= '<script type="text/javascript" src="/misc/collapse.js"></script>';
$output .= '<fieldset class="collapsible collapsed">';
$output .= '<legend>' . t('Forgot your password?') . '</legend>';
$output .= '<div class="fieldset-wrapper">' . drupal_get_form('user_pass') . '</div>';
$output .= '</fieldset>';
  return $output;
}
?>

There is a better way to add js via drupal_add_js()

Comments

jghyde’s picture

Here is the original post on this feature request: http://drupal.org/node/871990#comment-3288864

jghyde’s picture

Status: Active » Fixed

locomo, thanks for the contribution.

The patch with this fix in it is located at #871990: "Forgot Password" appears in modalframe login.

I am closing this issue unless someone has more.

Go here for the patch: #871990: "Forgot Password" appears in modalframe login

Joe Hyde
http://www.hydeinteractive.com/

jghyde’s picture

Status: Fixed » Closed (fixed)