Skip to content
Snippets Groups Projects
Commit 19695fab authored by Earl Miles's avatar Earl Miles
Browse files

#424798: Provide a hook so that the task handler can respond to clone events.

parent e881ee2f
No related branches found
No related tags found
No related merge requests found
......@@ -913,6 +913,10 @@ function delegator_admin_list_form_action_clone($form, &$form_state, $id, $actio
$handler->name = $name;
unset($handler->did);
if ($function = ctools_plugin_load_function('delegator', 'task_handlers', $handler->handler, 'clone')) {
$function($handler);
}
// Store the new handler.
if (!$form_state['cache']->locked) {
delegator_admin_set_task_handler_cache($handler);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment