Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
this stuff here:
http://arshaw.com/fullcalendar/docs/dropping/
attached patch adds a setting to the views UI, and sends that down to js land, and implements the 'iterate an object for callbacks' pattern so modules can write js to react to drop events.
pretty please?
Comment | File | Size | Author |
---|---|---|---|
#8 | fullcalendar-1287196-8.patch | 3.39 KB | tim.plunkett |
#6 | fullcalendar-1287196-6.patch | 2.67 KB | tim.plunkett |
#1 | fullcalendar.droppable.patch | 2.59 KB | Anonymous (not verified) |
fullcalendar.droppable.patch | 2.47 KB | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedupdated patch checks if the new option is set, coz some views that were already created might not have it.
Comment #2
aspilicious CreditAttribution: aspilicious commentedI prefer a permission linked to dropaccept in stead of another views option... combining both ideas provide greater flexibility but the views settings are getting damn big and ugly.
Can you provide a sample module/function for this??
I would like to see how you attach the callback to the object :)!
I think this is a good start for drag and drop creation of events.
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedupdated patch coming soon.
also: #1291850: support for 'columnFormat' options.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #5
aspilicious CreditAttribution: aspilicious commentedMarking this rtbc as it is implemented on the dev branch :)
Comment #6
tim.plunkettSo here's the patch I have in the to-merge branch I want to roll out soon.
But, it has a dependency on fullcalendar_droppable, the forthcoming module. Because I don't want that checkbox there unless someone has provided a droppable callback.
So maybe we need a hook or something to say "i've registered a droppable callback, please add the checkbox"? I'd love a better solution.
Comment #7
tim.plunkettTagging.
Comment #8
tim.plunkettOkay, it's now
hook_fullcalendar_droppable()
. Docs added as well.Comment #9
Anonymous (not verified) CreditAttribution: Anonymous commentedlooks awesome, already RTBC, so just a +1 from me.
Comment #10
aspilicious CreditAttribution: aspilicious commentedAlso fixed!