Creates a field that a user can add a published gdoc link.
If the user adds this field to a node which has a url and body component, if the url field is filled out then the module scrapes the google doc strips out unnecessary html and inserts it into the body field.
This is different to other modules as it does not use the google api it just looks at a published page and scrapes the html from the page.
Future features are as follows
- Options for which elements to strip out
- Outh to scrape docs that aren't publicly published
https://drupal.org/sandbox/danharper/2264665
This is my first module be nice :)
Comments
Comment #1
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxdanharper2264665git
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 #2
brice_gato commented- Provide READEME file
- Here, what hook exactly you wanted to use? (hook_node_presave($node) or hook_field_presave($entity_type, $entity, $field, $instance, $langcode, &$items))
- Do not forget to move from your master branch to something like 7.x-1.x
Comment #3
danharper commentedRepo has been updated.
http://pareview.sh/pareview/httpgitdrupalorgsandboxdanharper2264665git
Cheers Dan
Comment #4
brice_gato commentedYou made your changes on master!
Spread your corrections on 7.x-1.x-dev
On branch 7.x-1.x :
I'm afraid that what you did in gdoc_field_doc_out can become obsolete very quickly, ie points on styles
After your corrections do not forget to change the status of your issue to "Needs review".
Comment #5
danharper commentedI have updated as suggested.
I will change the gdoc_field_doc_out() function to us curl rather than file_get_contents();
Thanks for all the help it's amazingly useful :)
Dan
Comment #6
churel commentedHello,
I only see this issue :
You are using curl without declaring it on a hook_requirements (see exemple here https://drupal.org/node/1529166)
Comment #7
danharper commentedAdded the hook_requirements() into the install file.
Comment #8
brice_gato commentedI made some changes on the hook_requirements. Here attached the patch (hook_requirements-2284633-8.patch) to be applied.
Comment #9
brice_gato commentedComment #10
danharper commentedCommitted patch with correct git attribution
Comment #11
brice_gato commentedChange your default branch from master to 7.x-1.x
http://drupal.org/node/1659588
Comment #12
danharper commentedDefault branch has been changed.
Comment #13
brice_gato commentedYour module looks good for me.
Comment #14
danharper commentedThink there may be a name clash, I was sure it was available when I started it so will need to change it.
Comment #15
danharper commentedRenamed module so it has a namespace gdocfield instead of gdoc_field
Comment #16
danharper commentedComment #17
brice_gato commentedYou have to change namespaces of your files, functions and hooks.
Comment #18
danharper commentedHadn't committed properly, have re done it now.
Comment #19
danharper commentedComment #20
danny.meldrum commentedTested and working
Comment #21
danharper commentedAnything else I need to do to get this promoted?
Cheers Dan
Comment #22
gisle@danharper, just just have to be patient!
If you look at the RTBC queue, you'll notice that the time it takes from RTBC-status to actual approval by one code review administrators may be significant.
Currently, the there are projects that got there RTBC-status more than six months ago that are not yet promoted.
AFAIK, that is how things are, and there is nothing one can do to speed up the process.
Comment #23
danharper commentedThanks for the info
Dan
Comment #24
danharper commentedComment #25
kscheirerYou might be able to use drupal_convert_to_utf8 instead of mb_convert_encoding().
Thanks for your contribution, danharper!
I updated your account so you can 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 stay 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.
Comment #27
danharper commentedHi All,
I still don't seem to have the tab to promote my module.
Cheers Dan
Comment #28
klausiYou created your sandbox as drupal.org infrastructure project instead of module. You need to create a new sandbox as module and push your commits there, then you will be able to promote it.