This project is an extention to Subscriptions module which allows
users to subscribe to new content via reference fields.
View code: http://drupalcode.org/sandbox/bulat/1990654.git
Repo: git clone http://git.drupal.org/sandbox/bulat/1990654.git subscriptions_reference
Reviews of other projecst:
- http://drupal.org/node/1930370#comment-7186314
- http://drupal.org/node/1909588#comment-7397912
- http://drupal.org/node/1987552#comment-7416758
Sample use case
- There are two content types
Answer
andQuestion
and eachAnswer
references
specific question vianode reference
orentity reference
field; - As a user I want to subscribe to a Question, which means that every new
Answer
related to that question will be mailed to me.
For developers
We only need to implement hook_subscriptions_reference_info()
provided by this module for above use case to work:
/**
* Implements hook_subscriptions_reference_info()
*/
function example_subscriptions_reference_info() {
return array(
'question_answers' => array(
'parent' => 'question',
'child' => 'answer',
'field' => 'field_question', // field on answer content type that references a question
'ref_item' => 'nid', // this will be 'target_id' for entity reference
));
}
Sandbox
Link to sandbox project - http://drupal.org/sandbox/bulat/1990654
Need for project
This functionality was discussed here - #286789: Sending notifications based on a cck node reference field
Test coverage
This project includes fair amount of tests, which can be of use for Subscriptions module.
Comment | File | Size | Author |
---|---|---|---|
#6 | coder-results.txt | 8.93 KB | klausi |
Comments
Comment #1
PA robot CreditAttribution: PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://ventral.org/pareview/httpgitdrupalorgsandboxbulat1990654git
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
bulat CreditAttribution: bulat commentedCode in the module was fixed according to automated review in comment #1. Some issues are still pending in test files, but that should not affect the review of the module.
Comment #3
bennetteson CreditAttribution: bennetteson commentedPlease use ready to use public git clone without your usename :
git clone http://git.drupal.org/sandbox/bulat/1990654.git subscriptions_by_reference
Comment #3.0
bennetteson CreditAttribution: bennetteson commentedAdded link to repository
Comment #3.1
bulat CreditAttribution: bulat commentedupdated clone command
Comment #4
bulat CreditAttribution: bulat commentedUpdated git clone command.
Comment #4.0
bulat CreditAttribution: bulat commentedupdated clone folder
Comment #4.1
bulat CreditAttribution: bulat commentedAdded review http://drupal.org/node/1930370#comment-7186314
Comment #5
bulat CreditAttribution: bulat commentedPAReview tag added.
Comment #6
klausiReview of the 7.x-1.x branch:
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.
manual review:
Can't say much about the functionality of the module, but looks RTBC from visual code review. Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Comment #7
bulat CreditAttribution: bulat commentedI fixed most code issues in .test file, updated project's page and ReadMe file.
Comment #8
klausiHm, this has fallen off my radar, sorry about that. No objections for more than a week, so ...
Thanks for your contribution, bulat!
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.
Comment #9
bulat CreditAttribution: bulat commentedThank you @klausi, promoted project can be found here: https://drupal.org/project/subscriptions_reference
Comment #10.0
(not verified) CreditAttribution: commentedUpdated issue summary.