This module add MobileMenu jQuery plugin as a library, it's a thin and very customizable plugin which allow to build on-canvas sliding mobile menus, it is usable for theme developers. Basically the module just add that plugin as a library which can be imported via code below.
drupal_add_library('jquery_mobilemenu', 'jquery.mobilemenu');
But it also provide an administration page in where you can easily choose the themes where library must be loaded. There are hook_init function which check is current theme one of the selected in admin page, if yes it's import the library
For more demo check this link.
Project Page: jQuery MobileMenu
Clone Command: git clone --branch 7.x-1.x http://git.drupal.org/sandbox/sargismarkosyan/2316879.git jquery_mobilemenu
Comments
Comment #1
sargismarkosyan commentedComment #2
sargismarkosyan commentedComment #3
anil280988 commentedThe git command provided by you is the private git command that you will use. Kindly provide the public git command so that others can clone your module. It will be like this.
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/username/module_path module_name
Comment #4
sargismarkosyan commentedComment #5
sargismarkosyan commentedComment #6
sargismarkosyan commentedThanks for comment I fix that.
Comment #7
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 #8
th_tushar commentedHi @sargismarkosyan,
I have manually reviewed your code, and found some issues,
1) In hook_theme(), its better to use "administer jquery mobilemenu" instead of "administer jquery.mobilemenu".
2) I have seen that you are setting your module specific variables in jquery_mobilemenu_admin_submit(), so you will have to write the hook_uninstall() function in .install file to delete these variables on un-installation of the module.
3) The function jquery_mobilemenu_admin($form) should also contain a reference to $form_state as a second parameter.
4) Why is the #type => 'actions' required in jquery_mobilemenu_admin() function?
As you have only one action, you can directly use,
*5) There is no proper instruction to the module installer/user to download the required library files and copy to sites/all/libraries. Are you checking if the library files are copied to site by user while installation of the module and displaying the error if library files are not found?
Changing the status to "Needs Work".
Please fix the above issues, and you can change the status back to "Needs Review".
Thanks
Comment #9
sargismarkosyan commentedHi @th_tushar,
Thanks for review, I fixed these issues.
Comment #10
sargismarkosyan commentedComment #11
raffi commentedComment #12
kscheirerBlocking Issues:
Non-blocking issues:
Comment #13
wuxiaogu commentedIn hook_library()
I think you'd better write like this:
I add a if judgement, i think it is better.
Comment #14
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.