Hi everyone :)
I created this module to be used with an elearning distribution we created called Opigno. https://drupal.org/project/opigno_lms
The distribution installs by default some modules we created, while some others are optional using the Apps module. This particular module is an optional one. All the modules can be found here. https://drupal.org/search/site/Opigno?f[0]=ss_meta_type%3Amodule
The purpose of this module is to integrate the video module with our distribution, but it can also be installed without the distribution. It creates a content type called Video, a view and sets default permissions if in the Opigno distribution context.
Og module is required and the content type is set as an Organic Group content.
Project link: https://drupal.org/sandbox/Jamesap/2112951
Git repository: http://git.drupal.org/sandbox/Jamesap/2112951.git
Best regards
James Aparicio
Comments
Comment #1
Anonymous (not verified) commentedHi there,
A few comments:
There is a still master branch you should delete that master branch (if you can)
https://drupal.org/empty-git-master
see the
git branch -D masterthen add a readme file
and then some codesniffer erros
as follows:
http://pareview.sh/pareview/httpgitdrupalorgsandboxjamesap2112951git
Best of luck,
/K
Comment #2
Anonymous (not verified) commentedComment #3
Jamesap commentedHi kentoro, thanks for the review, i done the changes you recommended, i used the coder module before posting here, but it didnt signal those best practices. Nice to know of this tool pareview.sh.
The only one that is still remaining from the reviewer is
94 | WARNING | Unused variable $translatables.
It is regarding the view, the way it does the export. Isnt this the correct way to do it?
Best regards
Comment #4
Anonymous (not verified) commented2 things here.
1.- Good job that is just a warning, that as the comment suggests might or may not be a false positive.
2.- It's complaining that the variable is never being used not the definition per se.
Now I'd like to see an example in another module about the translatables being used as you did.
The only reference i could find is :
https://api.drupal.org/api/views/includes!base.inc/function/views_object...
Comment #5
Anonymous (not verified) commentedIn your .install file you need to add
the uninstall function
and delete the variables your module is using
with variable_del() that is.
Greetings.
/K
Comment #6
Anonymous (not verified) commentedComment #7
Anonymous (not verified) commentedI'm putting needs work untill the uninstall function is done.
Comment #8
Jamesap commentedHi kentoro, thanks for the feedback :)
Regarding the $translatables array, from my understanding, views exports that array so when importing the view, it lets Drupal know that there are those translatable strings, even if no one requests the view in question. If i remove the array i will have to wait for someone to request the view for me to be able to translate those strings. Do you think i should remove the array? It really doesnt make that much of a difference to me.
Best regards
Comment #9
Jamesap commentedOh ok, ill work on the uninstall function :)
Comment #10
Jamesap commentedComment #11
Anonymous (not verified) commentedSince it's a warning and not module breaker i won't mind, but i don't know if the finals reviewer/or someone else wil, You'll have to wait and see :) - good job so far!
Comment #12
Jamesap commentedAdded hook_uninstall.
Comment #13
Anonymous (not verified) commentedComment #13.0
Anonymous (not verified) commentedFixed git link
Comment #14
kscheirerNo major problems found, thanks for your contribution, Jamesap!
I updated your account to let you 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 get 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.
----
Top Shelf Modules - Crafted, Curated, Contributed.