Block Custom Title Module:
Block Custom Title module can be used to manage the block title for specific pages. Here, privileged user can add/edit block titles.
The Block Custom Title module provides an image link near the Block Titles. Click on the image, a form is provided where the new title of the block can be entered and saved. Please find the attached screen shot, block_custom_title_entry.png.

This module allows you to display same blocks in different pages with different Block Title. Please refer the screen shots as attached. In the below image we can see the Custom Titles entered for two blocks displayed in a page.

There is no explicit module required for this feature. But, this enhances the existing Drupal core Block module feature such a way that, we can assign block title for specific page for a single block where ever needed. So we are not restricted with the single block title any more.
Sandbox Project Page: https://www.drupal.org/sandbox/sajiniantony/2447165
Git Link:
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/sajiniantony/2447165.git block_custom_title
cd block_custom_title
Projects Reviewed:
https://www.drupal.org/node/2447875#comment-9703145
https://www.drupal.org/node/2429473#comment-9703177
https://www.drupal.org/node/2394683#comment-9703165
https://www.drupal.org/node/2435083#comment-9704007
https://www.drupal.org/node/2451223#comment-9736121
https://www.drupal.org/node/2442995#comment-9736089
https://www.drupal.org/node/2372249#comment-9736141
https://www.drupal.org/node/2430771#comment-9736687
| Comment | File | Size | Author |
|---|---|---|---|
| #24 | block_custom_title_entry.png | 8.19 KB | sajiniantony |
| #23 | block_custom_title.png | 20.67 KB | sajiniantony |
Comments
Comment #1
sajiniantony commentedComment #2
PA robot commentedProject 1: https://www.drupal.org/node/2448653
Project 2: https://www.drupal.org/node/2422715
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 #3
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxsajiniantony2447165git
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 #4
sajiniantony commentedMentioned issues reported by automated review tools are fixed and updated. Please review.
Comment #5
naveenvalechaAssigning to myself for next review that may be tonight.
Comment #6
mlmoseley commentedIndividual user account
Yes
No duplication
Yes
Master Branch
Yes
Licensing
Yes
3rd party assets/code
Yes
README.txt/README.md
No, not completely. While I understood it, it could be more complete. For example, you say a 'privileged user' can edit the blocks title. Looking at the code, only user 1, the administrator can. The text implies you could let a user use the module through permissions, when you can't. Also, you misspelled privilege.
Code long/complex enough for review
Yes
Secure code
Yes
Coding style & Drupal API usage
The function custom_blocks_title_create() does not have a params statement in the docblock. See https://www.drupal.org/coding-standards/docs#functions.
Passed Coder with flying colors.
Comment #7
sajiniantony commentedHello moseley,
Thanks for the review.The pointed issues are fixed.
Have included hook_permission() in the module file and so permissions can be provided for users.
Comment #8
sajiniantony commentedadded other Projects reviewed section
Comment #9
sajiniantony commentedadding other Project reviews reference link.
Comment #10
cmak commentedPlease find my review below:
Automated Review
No issues found on http://pareview.sh/
Manual Review
custom_block_title.install
drupal_install_schema()incustom_blocks_title_install(), schema definitions are automatically called by drupal even before callinghook_install()and automatically removed when uninstalled. Also the passed in name indrupal_install_schema()is incorrect, you need to pass module name in it.custom_block_title.module
current_path()can be used instead ofimplode("/", arg())to reduce extra processing.$destinationvariable is duplicate or is of no use, use$path_urlfor setting both (path and destination) parameters.db_queryincustom_blocks_title_createusedb_merge()as it will reduce the overhead of processing and checking.db_query(), use Database API functions likeexecute()andfetchAssoc()to get a single record from your module table incustom_blocks_title_form_alter()andcustom_blocks_title_block_view_alter()functions.arg()function values in an array instead of calling it more than once incustom_blocks_title_form_alter()function.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 #11
klausi$_GET['path'] is not directly concatenated into a query string, so there cannot be SQL injection? drupal_get_query_parameters() will not sanitize $_GET either, it should only be used to remove unwanted elements (as the documentation says https://api.drupal.org/api/drupal/includes!common.inc/function/drupal_ge... ). It is only used in #value here, which is fine.
Make sure to test the actual vulnerability next time :-)
Comment #12
cmak commentedMy mistake, it will handle that in db_query. will surely take care next time. thanks for correcting. :)
Comment #13
sajiniantony commentedHello,
As mentioned I have removed the drupal_install_schema() from the install file.
Comment #14
jzasnake commentedIndividual user account
Yes: Follows
No duplication
Yes: Does not cause
Master Branch
Yes: Follows.
Licensing
Yes: Follows
3rd party assets/code
Yes: Follows
README.txt/README.md
Yes: Follows
Code long/complex enough for review
Yes: Follows
Secure code
Yes: Meets the security requirements.
Coding style & Drupal API usage
custom_blocks_title.module
You have a variable on line 87 that is not being used. As it serves no function, just remove it. :)
Comment #15
naveenvalecha@jzasnake,
Above is not blocker.Is there anything else that stopped you to set this to RTBC :)
Comment #16
sajiniantony commentedRemoved the unused variable.Thanks for the review.
Comment #17
jzasnake commented@naveenvalecha
Sorry this is my first review, should I set it as RTBC? Because that was the only thing that i found.
Comment #18
naveenvalechaNo Need to say sorry.Yup if you have not found any blocker you can set it RTBC :)
Comment #19
jzasnake commentedGreat, thank you for the help! :)
Comment #20
jzasnake commentedComment #21
sajiniantony commentedAdded the Review bonus tag.
Comment #22
naveenvalechaManual Review (Read 192c82c...)
custom_blocks_title_form_block_custom_block_delete_alter(&$form, &$form_state){.........}block-title/%/%/editblock-title/system/navigation/editThen I am getting these errorsNeed some vaildation here.
Removing Review bonus.Please take another Review bonus for the second admin review.
Comment #23
sajiniantony commentedComment #24
sajiniantony commentedComment #25
sajiniantony commentedAll the issues pointed in #22 are fixed and committed.
Please review.
Comment #26
sajiniantony commentedStatus changed as 'Needs Review' after the fixes.
Comment #27
sajiniantony commentedComment #28
sajiniantony commentedComment #29
sajiniantony commentedAdded another set of projects reviewed reference URLs for getting the review bonus.
Comment #30
klausiLooks like you forgot the review bonus tag?
Comment #31
sajiniantony commentedI missed to tag the same with my prevoius comment. Thanks Klausi, for tagging this.
Comment #32
klausimanual review:
But otherwise looks RTBC to me.
Assigning to mlncn as he might have time to take a final look at this.
Comment #33
sajiniantony commentedHello Klausi,
Please find the updates mentioned as follows;
1.As it includes too much changes , Will look into this as an enhancement feature.
2.Have used $form_state['values']
3.Currently only one form alter is implemented and so have used hook_form_id_alter()
4.Have implemented the changes mentioned.
5.Used arguments as mentioned in block_custom_title_form().
6.Regarding on the block_custom_title_block_list_alter(), this sets region to None for the blocks displayed in block_custom_title_form. The same comment has been added in the module file as well.
Please review.
Comment #34
pushpinderchauhan commentedno objections for more than a week, so I'm taking a final look.
Automated Review
Best practice issues identified by pareview.sh / drupalcs / coder. None
Review of the 7.x-1.x branch (commit 1a29061):
Git errors:
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
.info:
description = Block customization functionalitynot a useful info. It should be something like "Allow block title to be changed for different pages."Looking at the git history at https://www.drupal.org/node/2447165/commits, one or two word git commit message like "Modifications" many times does not really help your git history. See https://www.drupal.org/node/52287 on how to write meaningful messages.
block_custom_title_block_list_alter(): arg() is evil, and should almost always be avoided.
But otherwise looks good to me.
Thanks for your contribution, Sajini antony!
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 #35
sajiniantony commentedHi,
Thank you all for involving the review process and get this module promoted as full project.