New: Add hooks for project card

This commit is contained in:
Laurent Destailleur 2014-05-08 20:02:34 +02:00
parent 7bfbc4cbf3
commit 5923a754d1

View File

@ -71,6 +71,13 @@ $date_end=dol_mktime(0,0,0,GETPOST('projectendmonth','int'),GETPOST('projectendd
* Actions
*/
$parameters=array('id'=>$socid, 'objcanvas'=>$objcanvas);
$reshook=$hookmanager->executeHooks('doActions',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks
$error=$hookmanager->error; $errors=array_merge($errors, (array) $hookmanager->errors);
if (empty($reshook))
{
// Cancel
if (GETPOST("cancel") && ! empty($backtopage))
{
@ -356,6 +363,7 @@ if ($action == 'confirm_clone' && $user->rights->projet->creer && GETPOST('confi
$comefromclone=true;
}
}
}
/*
@ -768,6 +776,11 @@ else
print '</td></tr></table>';
}
// Hook to add more things on page
$parameters=array();
$reshook=$hookmanager->executeHooks('mainCardTabAddMore',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
}
llxFooter();