Description
This small module is primarily for use with the open source iOS Augmented Reality Framework PRAugmentedReality.
However, it can be very easily tested on its own as it just provides a CRUD Operation (index) for a custom resource for Drupal Services.
Both this module and framework are done as part of my work at Promet Solutions Inc.
Its value is mostly in allowing the open source AR Framework to be "plug-and-play", allowing any developer to use drupal with it side by side. Once this module is approved, if it is, there will soon be a distribution to enable even easier access to the iOS framework.
Here is the - Project page
git clone http://git.drupal.org:sandbox/glesage/1994126.git mobile_ar_connector
Other FYIs
Extra technical details
The module provides a resource with a single CRUD Operation (index) for devices to call. It can be passed one parameter" the last update timestamp. The calling entity passes that information and receives all the nodes which were updated since that timestamp.
The resource also filters the nodes by removing all excess data and extra nesting to reduce the size of the data to a maximum (for mobile data savings as well as simpler parsing on the receiver's end).
The module includes the drupal_alter hook, allowing other developers and (techie) users to add their own fields if they wish the resource to send them to the device as well.
My credentials
This is my first Drupal contrib module, but I have made numerous iOS Apps (you can check out my LinkedIn page if you wish and see my past projects)
Comments
Comment #1
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://ventral.org/pareview/httpgitdrupalorgsandboxglesage1994126git
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 #1.0
glesage commentedAdded few words and enhanced info
Comment #1.1
glesage commentedAdded details
Comment #1.2
glesage commentedremoved info already described on project page
Comment #2
glesage commentedFixed all issues pointed out by automated review tool
Comment #2.0
glesage commentedRemoved PRAugmentedReality description as it is available on project page
Comment #2.1
glesage commentedChanged git repo url to full details
Comment #3
internetdevels commentedHi,
Everything seems fine.
Just one comment:
in mobile_ar_connector.module:111 where you define your alter drupal_alter('mar_fields', $fields_to_keep) name of alter is 'mar_fields' which not contain module name i.e. 'mobile_ar_connector_fields ', this just for namespace keeping.
Comment #4
glesage commentedAlright I will change that.
I took that decision originally because it meant that when I implement it in my module the name it would be really long:
mobile_ar_connector_mobile_ar_connector_fields_alter(&$data) {}
But I guess thats ok... (:
Comment #5
glesage commentedDone updated that
Comment #6
jorgegc commentedHi @glesage,
I have just quickly checked your module and here is a list of issues that I found:
1. In README.txt
- You should have a section where you list the dependencies. Any libraries, modules and plugins should be in there.
- Add a blank newline at the end of the file.
2. In mobile_ar_connector.info
- Add a blank newline at the end of the file.
3. In mobile_ar_connector.module
- Lines 19 to 37: You have heaps of blank spaces, try changing to something like this:
- Line 72: You should probably be checking if $ar_objects_ids['node'] is set and is not empty.
- Line 129: Replace strlen with drupal_strlen (https://api.drupal.org/api/drupal/includes%21unicode.inc/function/drupal...)
- Add a blank newline at the end of the file.
I think that is all :-) Your module is looking pretty good overall!
Cheers
Comment #7
glesage commentedThanks! Alright I updated everything.
Regarding the last new line, I had already done that... I tried adding another one to verify, and automated review tools spit out errors about too many new lines.
Comment #8
kscheirerComment #9
kscheirerYou don't need to specify
php = 5.xin the .info file, Drupal 7 already requires 5.2.5. Your info requires rest_server, but the readme doesn't mention it in the list of dependencies.mobile_ar_connector_get_new_objects_access() can be simplified to just
return ($op == 'view' || $op == 'access content').All minor issues though, the code looks fine to me.
----
Top Shelf Modules - Enterprise modules from the community for the community.
Comment #10
kscheirermobile_ar_connector_format_arObject() shouldn't use camelCase for the function name I think.
Thanks for your contribution, glesage!
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.
Comment #11.0
(not verified) commentedChanged name for git clone