Overview
Adds a login and register link in the nav bar. Opens them in Bootstrap Modals.
This module is intended for use with the Bootstrap theme.
By default the login and register links are added to the navigation region, but they can be moved on the block admin page.
Requirements
Chaos tool suite (ctools)
Bootstrap 3
Installing
Just enable the module. You should now see login and register links on the right of the main bootstrap nav bar. There are no settings for the module but you can override output as outlined below.
Overriding output
Override the theme_bootstrap_login_modal_output($vars) function.
See this page on information on overriding theme functions.
create new account / request new password links
By default the login modal gets the standard login form which does not contain the "create new account" and "request new password" links. If you want these links in the modal you should override the output as stated above and replace
$login_form = drupal_get_form('user_login');
with:
$login_form = drupal_get_form('user_login_block');
Similar / related modules
- Twitter Bootstrap Modal
The Twitter Bootstrap Modal module provides functionality to enable modals for blocks and loads them via ajax. As opposed to this module which only adds links to open modals for login and register forms in the default bootstrap nav and does not load them via ajax (though does submit via ajax)
Project information
- Unsupported
Not supported (i.e. abandoned), and no longer being developed. Learn more about dealing with unsupported (abandoned) projects - No further development
No longer developed by its maintainers. - Module categories: Content Display, Developer Tools, Site Structure
- 353 sites report using this module
- Created by 2pha on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Development version: 7.x-3.x-dev updated 17 Jun 2016 at 04:14 UTC