Closed (fixed)
Project:
Modal Frame Contrib Package
Version:
6.x-1.x-dev
Component:
modalframe_register.module
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
4 Aug 2010 at 18:15 UTC
Updated:
7 Oct 2010 at 06:00 UTC
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
Comment #1
jghyde commentedHere is the original post on this feature request: http://drupal.org/node/871990#comment-3288864
Comment #2
jghyde commentedlocomo, 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/
Comment #3
jghyde commented