Commit a1d0ee89 authored by fmitchell's avatar fmitchell
Browse files

Issue #1778082 by alphageekboy: Add pathauto support for state_flow

parent 0cb8e7c1
7.x-2.x 7.x-2.x
-------------- --------------
#1778082: Add pathauto support for state_flow
#1701622: On hook_state_flow_event_fired, $node is sometimes not an object/null #1701622: On hook_state_flow_event_fired, $node is sometimes not an object/null
#1615258: Views Field State Flow: Event links is Broken #1615258: Views Field State Flow: Event links is Broken
#1493088: Include the vid of a new draft in the node object #1493088: Include the vid of a new draft in the node object
...@@ -20,4 +21,4 @@ Added state_flow_event_fired hook ...@@ -20,4 +21,4 @@ Added state_flow_event_fired hook
Add more parameters to state_flow_invoke_event_handlers Add more parameters to state_flow_invoke_event_handlers
#1332530: event's title in the UI #1332530: event's title in the UI
#1328684: drupal_alter in state_flow_load_state_machine instead of setting variable #1328684: drupal_alter in state_flow_load_state_machine instead of setting variable
Re-added 'Content Revisions' page - fixed bug with mass change of states for content, added updated column to table display Re-added 'Content Revisions' page - fixed bug with mass change of states for content, added updated column to table display
\ No newline at end of file
...@@ -479,6 +479,11 @@ function state_flow_promote_node_revision($rev_state_rec, $nid, $current_vid) { ...@@ -479,6 +479,11 @@ function state_flow_promote_node_revision($rev_state_rec, $nid, $current_vid) {
if ($path === FALSE) { if ($path === FALSE) {
$path = array(); $path = array();
} }
if (module_exists('pathauto')) {
if (isset($current_rev->path)) {
$path['pathauto'] += $current_rev->path['pathauto'];
}
}
if (isset($current_rev->path)) { if (isset($current_rev->path)) {
$path += $current_rev->path; $path += $current_rev->path;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment