I'd like to write some code to interface conflict checking with the node repeat module. This module creates individual nodes using the Date Repeat API, but since it spans it's date information across these multiple nodes, I don't believe it will work with the current efforts to get repeating events checked for conflicts.

So, as a non-developer (who will be hiring a developer to write this), can you offer some insight on where and how a small module may hook into the node creation process to check for conflicts? Which hooks and where to deploy them to enable checking?

I'd use any help/direction you could give to have a developer write a small module to make it happen. Then, of course, we'd push the module back to drupal.org as a separate module or as something that could be included in the resource_conflict package if desired.

Any help and direction on getting this done is appreciated. Thanks!

Comments

deviantintegral’s picture

Right now, the module itself has no hooks like what you would need. You should point your developer to #750598: hook(s) for field- and node-handlers, as that would probably be the right place to start for a proper API.

Rob_Feature’s picture

Ok, so it sounds like the patch would be to add actual field/node handler hooks to resource conflict so it can then be tied into. I'll be having someone do this in the near future and I'll have them post a patch here.

Rob_Feature’s picture

Title: Creating Node_Repeat Compatibilty » Creating Resource_Conflict Compatibilty
Project: Resource Conflict » Node Repeat
Version: 6.x-2.0 » 6.x-1.1
Category: support » feature

Changing this issue to node_repeat module since, most likely, this is an issue where node_repeat isn't creating nodes via proper hooks, therefore resource conflict isn't included in the creation process.

The idea, most likely, will be to patch this module to use proper hooks on node creation. I'd love to hear some input form the node_repeat developer on this issue if possible.

Rob_Feature’s picture

This patch has been rolled, however due to what looks like a bug in Date API, the exceptions still don't work with it. Patch to be posted soon by developer.

suydam’s picture

Component: Code » Miscellaneous
StatusFileSize
new1.37 KB

Patch to node_repeat validation attached. This enables integration with resource conflict.

As mentioned, the exceptions piece doesn't work right with DateAPI as far as I can tell.

gagarine’s picture

Version: 6.x-1.1 » 6.x-1.x-dev
Assigned: Unassigned » gagarine
Status: Active » Needs review
StatusFileSize
new4.04 KB

repost the patch unziped... This patch need work to be applied on the -dev.

I'm thinking of creating the sequence right on the node submit using the date repeat widget. I don't want to spend to much time working on that because lot of code are going to change.

gagarine’s picture

Status: Needs review » Needs work

Need work in fact...

Rob_Feature’s picture

gagarine: Any updates on compatibility of node repeat with resource conflict? (are the parts of the above patch that make this compatible with resource conflict in any newer versions of the module)

gagarine’s picture

Version: 6.x-1.x-dev » 6.x-3.x-dev

Someone should try with this version... I will when I got some time.