Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Passing on the configured workflow array to workflow definition #1

Merged
merged 2 commits into from Nov 14, 2011
Jump to file or symbol
Failed to load files and symbols.
+3 −0
Split
View
@@ -19,6 +19,8 @@ public static function get_workflows_for_object(midgard_object $object, array $w
throw new Exception("Invalid workflow definition {$workflow_name}: {$wf_class} doesn't implement midgardmvc_helper_workflow_definition");
}
+ $wf->workflow = $workflow;
+
if (!$wf->can_handle($object))
{
continue;
@@ -28,6 +30,7 @@ public static function get_workflows_for_object(midgard_object $object, array $w
(
'label' => $workflow['label'],
'provider' => $wf_class,
+ 'css' => (array_key_exists('css', $workflow)) ? $workflow['css'] : ''
);
}
return $object_workflows;