--- /root/formblock/formblock.module 2008-12-09 18:42:39.000000000 -0800 +++ formblock.module 2009-07-19 21:51:13.000000000 -0700 @@ -42,6 +42,8 @@ $blocks['contact_site'] = array( 'info' => t('Site-wide contact form')); } + $blocks['user_pass'] = array( + 'info' => t('Request new password form')); return $blocks; case 'view': @@ -58,6 +60,18 @@ } break; + case 'user_pass': + global $user; + // Don't display the form to logged in users + if (!$user->uid) { + drupal_add_css(drupal_get_path('module', 'formblock'). '/formblock.css', 'module', 'all'); + return array( + 'subject' => t('Request new password'), + 'content' => drupal_get_form('user_pass') + ); + } + break; + case 'contact_site': if (user_access('access site-wide contact form') && module_exists('contact')) { if (!flood_is_allowed('contact', variable_get('contact_hourly_threshold', 3))) {