Closed (won't fix)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
14 Feb 2013 at 20:57 UTC
Updated:
27 Apr 2013 at 22:25 UTC
This module was inspired by a thread on the Drupal.org forums in 2008 about adding headers to sections of menu items within a menu. Menu Headers adds this functionality in a graceful, and lightweight configuration page attached to each menu's active links.
The header will appear directly above the menu link that you chose.
7.x
http://drupal.org/sandbox/zbabtkis/1917610
Git command:
git clone --recursive --branch 7.x-1.0 http://git.drupal.org/sandbox/zbabtkis/1917610.git menu_headers
cd menu_headers
Comments
Comment #1
klausiWe are currently quite busy with all the project applications and I can only review projects with a review bonus. Please help me reviewing and I'll take a look at your project right away :-)
Also please fix your git branch as indicated on http://ventral.org/pareview/httpgitdrupalorgsandboxzbabtkis1917610git
Comment #2
npscode commentedHi zbabtkis,
Comments after quick manual review:
You should use version specific branch. See http://drupal.org/node/1015226.
Try to use standard way of drupal 7 for selecting data from tables. refer : api.drupal.org/api/drupal/includes!database!database.inc/function/db_select/7. db_query() (at line 147 menu_headers.module) will work but try to avoid this in drupal 7.
Run code review on the module and remove all coding style/formatting issue as per drupal standards.
Thanks.
Comment #3
aw030 commentedAutomated review:
PAreview.sh on ventral.org: http://ventral.org/pareview/httpgitdrupalorgsandboxzbabtkis1917610git Found some problems
Coder module: "Coder found 1 projects, 3 files, 102 normal warnings,..." (all for incorrect coding conventions)
Manual review:
- Install a fresh drupal 7.19
- Move the module folder to sites/all/modules
- Install module
- Go to admin/structure/menu/manage/[menu-name]
- Tried main-menu, navigation and a custom created menu
- Clicked "Edit menu item headers" in links section
- Entered a text to "Menu Header" formular field and saved.
- No "headers" appearing anywhere on menu-items, where i can see these headers now?
Issues:
1. Headers not become visible (the custom headers are delivered to frontend in the cddata block, but it seems that the jQuery routine not works well).
Other:
You should move the project on git from head to branch following the right naming pattern.
In function menu_headers_set_titles() you could optimize the amount of triggered db calls using a batch-logic, but this is only a suggestion if handling a huge amount of menu-items
Status stays "needs work".
Comment #4
dDoak commentedHi,
A quick manual review :
- use spaces instead of tabs for your indentation
- in menu_headers_menu_local_tasks_alter put a break before default statement
- in menu_headers_menu, try to define your own permission, "administer nodes" is too general....
Comment #5
PA robot commentedClosing due to lack of activity. Feel free to reopen if you are still working on this application.
I'm a robot and this is an automated message from Project Applications Scraper.