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.
It'd be great to have views integration with State Flow Schedule to be able to display the scheduled transition date and also the scheduled event.
Comment | File | Size | Author |
---|---|---|---|
#4 | state_flow_schedule-views_integration-1759278-4.patch | 6.64 KB | azinck |
#3 | state-flow-sched-views.patch | 580 bytes | bleen |
#1 | 1759278-1-state_flow_schedule_views_integration.patch | 4.71 KB | bmcmurray |
Comments
Comment #1
bmcmurray CreditAttribution: bmcmurray commentedAttached is a patch that adds VIews support for State Flow Schedule. It does depend on a change to the base StateMachine class in base.inc -- making the get_event() function public instead of protected. For consistency I also made get_state() public.
Comment #2
fmitchell CreditAttribution: fmitchell commentedNeed to check the objects before assuming. Getting error:
PHP Fatal error: Call to a member function get_options() on a non-object in /state_machine/modules/state_flow_schedule/includes/views/state_flow_schedule_handler_field_state_machine_event.inc on line 11
Comment #3
bleen CreditAttribution: bleen commentedThis patch fixes the error mentioned in #2
Comment #4
azinck CreditAttribution: azinck commentedField and filters should be attached via revision ID, not nid.
Comment #5
fmitchell CreditAttribution: fmitchell commentedhttp://drupalcode.org/project/state_machine.git/commit/905caa6