Sometimes we would like to know the blocks which are assigned (enabled / disabled) to a particular page. This module helps us to get the block(s) information by providing the page path.
This module helps us to find the blocks which are assigned through
1. "admin/structure/block" section
2. Context module
Project Link: https://www.drupal.org/sandbox/jnavane/2545284
Git Clone: git clone --branch 7.x-1.x http://git.drupal.org/sandbox/jnavane/2545284.git blocks_by_page_path
Please review the same and post bugs.
Manual reviews of other projects
https://www.drupal.org/node/2566179#comment-10372589
https://www.drupal.org/node/2575109#comment-10473508
https://www.drupal.org/node/2587825#comment-10473616
| Comment | File | Size | Author |
|---|---|---|---|
| #15 | Blocks_by_path_wrong_results.png | 79.39 KB | prashant.c |
Comments
Comment #2
lslinnet commentedFixed title of the application.
Comment #3
jnavane commentedComment #4
pravin ajaaz commentedComment #5
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxjnavane2545284git
We 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 #6
jnavane commentedComment #7
ajalan065 commentedGood work.
Did not find any issue with the project
Comment #8
rashid_786 commentedHi thanks for your contribution here are my observations.
Automated Review
Found errors in automated review: http://pareview.sh/pareview/httpgitdrupalorgsandboxjnavane2545284git
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 #9
jnavane commentedThank you for your review updates.
I will have them fixed and update you the status.
Comment #10
pravin ajaaz commentedManual Review:
1. In hook_menu, you have created the menu with
"access callback" => TRUE. So anonymous user can also visit admin/structure/block/blocks_by_page_path. Please create a custom permission and set the access argument.2. Also you have not sanitized the "Block Name, Default Theme and Region" before rendering them. Please read through Handle text in a secure fashion. Use
check_plainbefore creating $title, $default_front_theme, $region, $assigned_using values in the functionajax_find_blocks_by_pagepathThis creates a XSS vulnerability. Try creating a block with title
<script>alert('xss');</script>, It will throw a alert message while finding it through the form you created.The two security problems are blockers here.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
Comment #11
jnavane commentedHi Pravin & Rashid,
I have fixed the open issues and security issues which are posted by you guys.
Please review the same and let me know if I need to fix anything.
Comment #12
bisw commentedHi,
I am not able to clone your project.
There are some issue by Drupal Project Application reviewers tools. Please check
http://pareview.sh/pareview/httpgitdrupalorgsandboxjnavane2545284git
Comment #13
prashant.cHi,
Also your function names should start from your module name to prevent conflicts.
I saw you have used _get_block_title($module, $delta) etc. these should start with your module name.
It is also providing me wrong results.
For example :
1. I searched for node/31 it is providing me results for this also although this not does not even exist on my installation.
2. It should also display results on entering the path and hitting ENTER key, right now it only works on FIND button click.
Comment #14
prashant.cComment #15
prashant.cForgot to attached screenshot for wrong results attaching the same.
Comment #16
jnavane commentedHi Prashanth,
Thanks for posting bugs. I have fixed the issues which you posted. Please check it.
Comment #17
jnavane commentedComment #18
prashant.c@Navaneethakrishnan
Yes now the functionality is working fine but i noticed small thing you haven't renamed function names in your .module file acc. to your module name.
Comment #19
luigisaAutomated Review
Found errors in automated review: http://pareview.sh/pareview/httpgitdrupalorgsandboxjnavane2545284git
Manual Review
README.txt/README.md
[No] Does not follow the guidelines for in-project documentation and/or the README Template.
Coding style & Drupal API usage
* Use the hook_help to give user support
* All functions should be prefixed with your module/theme name to avoid name clashes
Comment #20
ashishdalviHi,
Automated Review
Coder Sniffer has found some issues with your code (please check the Drupal coding standards).
http://pareview.sh/pareview/httpgitdrupalorgsandboxjnavane2545284git
Manual Review
(*) All functions should be prefixed with your module/theme name
1. Readme.txt file dosen't follow the proper guidelines
2. Configure link is missing in .info file
configue=admin/structure/block/blocks_by_page_pathThis review uses the Project Application Review Template.
Thanks,
Ashish
Comment #21
jnavane commentedHi,
I have fixed all the issues which are recommended by http://pareview.sh/pareview/httpgitdrupalorgsandboxjnavane2545284git
Also I have added configure link in .info file.
Please review it.
Thanks,
Navaneeth
Comment #22
prashant.c@Navaneethakrishnan
Yes the function names seems fine.
Comment #23
pravin ajaaz commentedYes everything seems to be fixed now.
Comment #24
jnavane commentedComment #25
jnavane commentedComment #26
klausiGit errors:
Review of the 7.x-1.x branch (commit dd4da8b):
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 good to me, so ...
Thanks for your contribution, Navaneethakrishnan Jayabalan!
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 #27
jnavane commented@klausi, Thanks for your review.
I have fixed the PAReview suggestion and translating string activities.
Main objective of this module is to bring up the blocks details assigned to a particular page. But I will consider your suggestion and work on it.
Thanks again.