Synopsis
This module creates a drop down login block, which can be added to any region. If javascript is disabled it will be a regular link to login page.
Installation
1. Copy the entire drop_down_login directory the Drupal sites/all/modules/custom directory.
2. Login as an administrator. Enable the module in the "Administer" -> "Modules".
Configuration
1. Add the new block "Drop down Login" to the required region via "Administer" -> "Structure" -> "Blocks".
Project Page
This is the project page link for Drop Down Login
Clone Repository
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/nashkrammer/2367405.git drop_down_login
Preview
Similar Projects
Following are the similar projects,
Modal forms (with ctools)
Better Login
Ajax Login/Register
Bootstrap Login Modal
Drop down login does not depend on any frameworks or other modules. It provides drop down box instead of modal window.
The Project Application Review Link
https://www.drupal.org/node/2308911#comment-9354299
https://www.drupal.org/node/2377935#comment-9378075
https://www.drupal.org/node/2273733#comment-9394147
Comment | File | Size | Author |
---|---|---|---|
#11 | stark.JPG | 18.76 KB | Rishi Kulshreshtha |
Comments
Comment #1
sandeep.kumbhatil CreditAttribution: sandeep.kumbhatil commentedComment #2
sandeep.kumbhatil CreditAttribution: sandeep.kumbhatil commentedComment #3
PA robot CreditAttribution: PA robot commentedWe are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #4
sumitmadan CreditAttribution: sumitmadan commentedHi Sandeep,
Your module looks nice.
I have taken an overview and it need little tweaks.
Strict warning: Only variables should be passed by reference in drop_down_login_dropdown() (line 70 of /Applications/MAMP/htdocs/myproject/sites/all/modules/custom/drop_down_login/drop_down_login.module).
change
render(drupal_get_form('user_login'))
to$login_form = drupal_get_form('user_login'); render($login_form);
.README.txt
file follow the ReadMe Standards.Comment #5
sandeep.kumbhatil CreditAttribution: sandeep.kumbhatil commentedHi Sumit,
Thanks a ton for the review,
I have fixed the issues as you mentioned above.
Thanks,
Sandeep Kumbhatil
Comment #6
sumitmadan CreditAttribution: sumitmadan commentedMoving this to Needs Review then.
Comment #7
PA robot CreditAttribution: PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxnashkrammer2367405git
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #8
sandeep.kumbhatil CreditAttribution: sandeep.kumbhatil commentedFixed the issues mentioned in http://pareview.sh/pareview/httpgitdrupalorgsandboxnashkrammer2367405git
Comment #9
PA robot CreditAttribution: PA robot commentedProject 1: https://www.drupal.org/node/2372277
Project 2: https://www.drupal.org/node/2370863
As successful completion of the project application process results in the applicant being granted the 'Create Full Projects' permission, there is no need to take multiple applications through the process. Once the first application has been successfully approved, then the applicant can promote other projects without review. Because of this, posting multiple applications is not necessary, and results in additional workload for reviewers ... which in turn results in longer wait times for everyone in the queue. With this in mind, your secondary applications have been marked as 'closed(duplicate)', with only one application left open (chosen at random).
If you prefer that we proceed through this review process with a different application than the one which was left open, then feel free to close the 'open' application as a duplicate, and re-open one of the project applications which had been closed.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #10
sandeep.kumbhatil CreditAttribution: sandeep.kumbhatil commentedI would like to continue with below mention project first.
Project 1: https://www.drupal.org/node/2370863
Thanks for the information
Comment #11
Rishi KulshreshthaAutomated Review
Best practice issues identified by pareview.sh seems to be clean.
Manual Review
package
asPackage Name
you should keep it blank until and unless there is matched package available there for your project.Single project promote
tag.The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
Comment #12
sandeep.kumbhatil CreditAttribution: sandeep.kumbhatil commentedComment #13
sandeep.kumbhatil CreditAttribution: sandeep.kumbhatil commentedHi Rishi,
Thanks for the review, I have resolved all the issues which you have mentioned in you post.
1. I have changed the package name to
Other
, as my project doesn't match with available package.2. Thanks for adding project into right tag.
3. Made changes on README as per the guidelines.
Comment #14
kreynen CreditAttribution: kreynen commentedWhile different enough to potentially justify a new project, it's worth noting all of the similar modules and explaining what makes this one different.
https://www.drupal.org/project/modal_forms
https://www.drupal.org/project/betterlogin
https://www.drupal.org/project/ajax_register
https://www.drupal.org/project/bootstrap_login_modal
Comment #15
nashkrammer CreditAttribution: nashkrammer commentedComment #16
nashkrammer CreditAttribution: nashkrammer commentedComment #17
nashkrammer CreditAttribution: nashkrammer commentedHi Kreynen,
Thanks for suggestion. I have added modules you have mentioned under similar modules list in description. Drop down login is different from them in UI and does not have any dependency.
Comment #18
nashkrammer CreditAttribution: nashkrammer commentedAs per my last comment, I'm updating status to needs-review.
Comment #19
k0teg CreditAttribution: k0teg commentedAutomated Review
Git default branch is not set, see the documentation on setting a default branch.
Review of the 7.x-1.x branch (commit d6b0dbd):
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
Source: http://pareview.sh/ - PAReview.sh online service
Manual Review
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
Comment #20
sandeep.kumbhatil CreditAttribution: sandeep.kumbhatil commentedHi k0teg,
Thanks for the review, I have resolved all the issues you have mentioned above.
I am changing the Needs Work tag to Needs Review tag
Comment #21
sandeep.kumbhatil CreditAttribution: sandeep.kumbhatil commentedComment #22
Rishi KulshreshthaAutomated Review
Best practice issues identified by pareview.sh is clean.
Manual Review
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
As there is no blocker found, I'm moving this project to RTBC. Thanks for your contribution.
Comment #23
k0teg CreditAttribution: k0teg commentedAutomated Review
Review of the 7.x-1.x branch (commit f6f39d0):
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
Source: http://pareview.sh/ - PAReview.sh online service
Manual Review
a html_tag can be used
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
Comment #24
nashkrammer CreditAttribution: nashkrammer commentedComment #25
nashkrammer CreditAttribution: nashkrammer commentedHi k0teg,
Thank You for the review. I have fixed the issues you have mentioned as follows,
1) removed html from t().
2) Moved template file to the theme folder as suggested.
3) fixed javascript formatting.
Updating status to need review.
Comment #26
k0teg CreditAttribution: k0teg commentedAutomated Review
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
Source: http://pareview.sh/ - PAReview.sh online service
Manual Review
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
The module looks RTBC for me.
Comment #27
sandeep.kumbhatil CreditAttribution: sandeep.kumbhatil commentedComment #28
Sagar Ramgade CreditAttribution: Sagar Ramgade commentedAutomated Review
Git default branch is not set, see the documentation on setting a default branch.
Review of the 7.x-1.x branch (commit 08783b7):
No automated test cases were found, did you consider writing Simpletests or PHPUnit tests? This is not a requirement but encouraged for professional software development.
Manual Review
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
Comment #29
sandeep.kumbhatil CreditAttribution: sandeep.kumbhatil commentedHi Sagar, Thanks for the review. I have resolved all the points you have mentioned.
Comment #30
naveenvalechaManual Review :
drop_down_login.info : No need to define the package if the package is other.
drop_down_login.module :
Comment #31
sandeep.kumbhatil CreditAttribution: sandeep.kumbhatil commentedHi Naveen,
I have resolved all the issue you mentioned in you post, I am changing the tag to Need Review
Comment #32
sandeep.kumbhatil CreditAttribution: sandeep.kumbhatil commentedComment #33
naveenvalechaThanks!
Not found any release blocker. Setting this to RTBC :)
The project has more than 5 functions so removing the "PAReview: Single project promote" tag.
Comment #34
mpdonadio@naveenvalecha, for future reviews, not having a hook_help() isn't a blocking issue. I would make it a (+) one.
Assigning to myself for next review.
Comment #35
naveenvalechaThanks @mpdonadio!
Would u do let me know where the priority of issues is specified.Whether its blocker or not ?
Comment #36
naveenvalecha@sandeep.kumbhatil,
Few minor tweaks :
This is handled here that we need to display the login form to anonymous users only.So It seems that we don't need to do the same checks in drop-down-login.tpl.php
This is not application blockers.Still RTBC
Comment #37
sandeep.kumbhatil CreditAttribution: sandeep.kumbhatil commentedHi Naveen,
Thanks for pointing this out, I missed the changes on tpl file.
Made the changes,thanks once again for such detailed review.
Comment #38
naveenvalechaThanks!
One thing I missed in the above review.
you need to define the describe the all variables in the template http://cgit.drupalcode.org/sandbox-nashkrammer-2367405/tree/theme/drop-d...
like it is in http://cgit.drupalcode.org/uc_wishlist/tree/uc_wishlist_user_display.tpl...
Still +1 for RTBC.
Comment #39
mpdonadioSorry for the delay, life (and some D8 work) got in the way...
Automated Review
pareview.sh http://git.drupal.org/sandbox/nashkrammer/2367405.git
Git default branch is not set, see the documentation on setting a default branch.
Review of the 7.x-1.x branch (commit 2e8a176):
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
Manual Review
(+) I don't see the purpose for drop_down_login_validate_login(). Validation functions should just validate the form, and not do anything else.
I think this needs to be a submit handler?
(+) drop_down_login_block_view() should use a proper render array and not a #markup element.
(*) This needs a round of polishing. The template has too much logic/code in it. I think you could get rid of the .tpl.php, and just
build up a render array with two elements, the link and the login form. drop_down_login_block_view() should do the logged in/out
check (see user_is_anonymous istead of checking $user->uid), and then build up the proper element. drop_down_login_block_info() also likely
needs to set `'cache' => DRUPAL_CACHE_PER_ROLE`, to work properly.
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
Comment #40
nashkrammer CreditAttribution: nashkrammer commentedHi @mpdonadio,
Thank you for taking time to review the module. I have implemented following fixes as you have suggested.
1. Added a render array instead of theme for login/logout links and block, hence removed the tpl.
2. The
drop_down_login_validate_login()
is to redirect the user to "/user" page for unsuccessful attempt to login, Just like the twitter and facebook style. If I put same code in submit handler it does not redirect since the core submit handler redirects first to current page with error message. Same way for a successful login user should go to the current page which works in submit handlerdrop_down_login_submit_login()
.3.
'cache' => DRUPAL_CACHE_PER_ROLE
this is default for hook_block_info() please suggest otherwise.Updating to needs review.Thank You.
Comment #41
klausiReview of the 7.x-1.x branch (commit 1ead542):
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
manual review:
But otherwise looks RTBC to me. Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Assigning to heddn as he might have time to take a final look at this.
Comment #42
nashkrammer CreditAttribution: nashkrammer commented@klausi thank you for reviewing.
As per your suggestion,
-The functionality required is to take user to detailed user login page (/user) after a failed sign in attempt from any other pages like facebook and twitter style. Submit handler does not redirect since the core submit handler redirects first to current page with error message. Hence drupal_redirect_form() is added to validation handler which will redirect to /user , only in case of a invalid sign in attempt. If there user adds proper credentials all other validation and submit handlers should work.
I am looking any other method or work around to achieve this functionality, please suggest the same.
Thank You,
Comment #43
heddnI should have a chance to look at this next.
Comment #44
klausino objections for more than a week, so ...
Thanks for your contribution, nashkrammer!
I updated your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.
Comment #45
sandeep.kumbhatil CreditAttribution: sandeep.kumbhatil commentedHeartily thanks to all the reviewers for the reviews.