EditHub provides a fully configurable, discrete and easy to use administration menu.
Each feature is displayed in a section and has a set of actions. Each action is displayed according to the current user's permissions.
Sections, features and actions are configurable with the hook_edithub and editable with hook_edithub_alter
It is different from other modules because you can configure actions/buttons to simplify the menu (a feature can have multiple actions/buttons displayed if current user have access)
Drupal SandBox : https://drupal.org/sandbox/radiofrance/2210437
Git repo : git clone --branch 7.x-1.x http://git.drupal.org/sandbox/RadioFrance/2210437.git edithub
Thanx a lot for your validation !
Comments
Comment #1
gobinathmAfter enabling this module, i'm not seeing any features and actions as mentioned in sandbox description
I consider above once as important, but not application blocker. In-contrast the below once can be categories as nice to have, its you choice to change it.
Once you are done with necessary changes please change the status to Needs Review so that other contributors would start looking at this project.
Comment #2
Radio France commented1. "Master" branch deleted.
2. "README.txt" file added
3. I don't find any unused variable in these two files. Can you help me found these unused variables ?
Thanx a lot, and hope you will like this module !
Comment #3
draenen commentedAutomatic review still returns issues. See http://pareview.sh/pareview/httpgitdrupalorgsandboxradiofrance2210437git
Manual Review
edithub.html.inc:39 - HTML should be generated using a hook_theme function See https://api.drupal.org/api/drupal/modules!system!system.api.php/function...
edithub.html.inc:42 - It is safer to make a copy of global variables ($user = $GLOBALS['user']) to avoid accidentally overwriting or change the global value.
Comment #4
Radio France commentedHi,
Fixes a lot of issues !
Thanx a lot for your help !
Comment #5
Radio France commentedHi,
this module is ready to test :)
Comment #6
Janke Consulting commentedAn automated review of your project has found some issues with your code; As coding standards make sure projects are coded in a consistent style we please you to have a look at the report and try to fix them. Anyway, note that issues found are possibly false positives and fixing all issues is not a requirement for getting through the application process.
You can find the results of the automated report at http://pareview.sh/pareview/httpgitdrupalorgsandboxradiofrance2210437git.
Comment #7
Radio France commentedAre you sure for comments indentation ? Core modules indent comments.
Ready to publish :)
Many thanx.
Comment #8
znaeff commentedHi!
1. Fix git link in description.
Change
git.drupal.org:sandbox/RadioFrance/2210437.git
to
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/RadioFrance/2210437.git edithub
2. I see http://pareview.sh/pareview/httpgitdrupalorgsandboxradiofrance2210437git still returns issues about 2 files, please fix them all.
3. Remove admin callback function - it is empty. And edithub.callbacks.inc file.
Comment #9
Radio France commentedComment #10
Radio France commentedThanx znaeff.
All changes done.
Many thanx for review.
Comment #11
subhojit777Pareview.sh found these issues: http://pareview.sh/pareview/httpgitdrupalorgsandboxradiofrance2210437git
Manual review:
- In edit-button tpl, you should display the link through theme variable. Add the l() function code in a preprocess function and display it in tpl. This ensures absolute link.
- Some comments are written in French, they should be in English.
I enabled the module in a fresh Drupal installation (Drupal 7.28) and seems like the module is not working. I am checking the installation as admin and I dont see any changes. Tried disabling overlay and toolbar module, but I dont see any menu as shown in https://www.drupal.org/sandbox/radiofrance/2210437. Am I missing some setting?
Comment #12
Radio France commentedHi,
thank you subhojit777 for review !
I fixed your manual review.
I fixed the Pareview report (http://pareview.sh/pareview/httpgitdrupalorgsandboxradiofrance2210437git), I think the 2 remaining issues are false-positive.
Comment #13
dbt102 commentedAutomated Review
Best practice issues identified by pareview.sh / drupalcs / coder. Please don't copy/paste all of the results unless they are short. If there are a lot, then post a link to the automated review and mention that problems should be addressed.
Manual Review
(*) or (+)
(*)
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 #14
dbt102 commentedComment #15
Radio France commentedHi dbt102,
Thanx for your review.
I don't understand the part "app_link" of this review ? Is it a branch to create ?
For the readme, all informations are here, there is nothing to activate out of the box, you have to create your own features. Do you want a better exemple in the .api.php ?
Comment #16
albertski commented1. It looks like the Views module is a dependency to this module. Please add it as a dependency to your .info file.
2. It looks like there is some code in French. To be consistent can you translate these to English (not sure if I found all of them):
$items['myContainer']['label'] = 'Mises en avant';
/* Filter criterion: Contenu: Titre */
$handler->display->display_options['filters']['title']['expose']['label'] = 'Titre';
$view->description = 'Vue d\'administration';
$handler->display->display_options['pager']['options']['tags']['previous'] = '‹ précédent';
$handler->display->display_options['pager']['options']['tags']['next'] = 'suivant ›';
$handler->display->display_options['pager']['options']['tags']['last'] = 'dernier »';
$handler->display->display_options['arguments']['type']['title'] = 'Les %1s';
3. Remove extra spaces (Line 84 -86 edithub.html.inc):
4. Remove extra spaces (Line 94 -96 edithub.html.inc):
Comment #17
jlbellidoHi,
You should add a @file document block to edithub.js file acording to:
FILE: /var/www/drupal-7-pareview/pareview_temp/js/edithub.js
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | ERROR | Missing file doc comment
--------------------------------------------------------------------------------
Please, fix the suggested comments at #16 and the @file document block, you can check it at http://pareview.sh/pareview/httpgitdrupalorgsandboxradiofrance2210437git
Regards!
Comment #18
PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #19
Radio France commentedChanges pushed.
@albertski : It's not a dependency, but if you have views module, Edithub add a new view. The module works fine without Views.
Comment #20
Anonymous (not verified) commentedReview of the 7.x-1.x branch (commit 654a2f0):
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
Comment #21
Radio France commentedHi,
I've fixed the CodeSniffer's issues.
Comment #22
pablitt commentedManual review:
edithub.views_default.incstill has some texts in French (like 'Titre'). You should translate them to English.By reading the introduction/description, it looks that this module provides a UI to manipulate the administration menu. But then if I keep reading the README file and the code, it actually looks that this module provides a hook and a template variable to show a manipulated menu. Is that correct?.
Either way, you should definitely assemble a more appropriate description and clear examples (don't just reference to the
edithub.api.phpfile, that's even more confusing) about how to use this module.It looks that this module has something interesting to offer, but his purpose is lost because the documentation is not clear (you should definitely add Roadmap, Known Issues, and the Dependencies sections). Take a look at the Project page template for more information.
It would help a lot if you also explain in a very few lines some context (in the Synopsis section) about why this module was created.
I hope this helps.
Cheers!
Comment #23
PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.