1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 17:44:37 +02:00

Event hooks now allows for multiple form elements.

Also added $frm->renderHooks($data).
This commit is contained in:
Cameron
2012-11-30 20:47:26 -08:00
parent 564b0600e9
commit 97a0ada0cb
11 changed files with 76 additions and 124 deletions

View File

@@ -921,23 +921,7 @@ class adminDownload extends download
//triggerHook
$data = array('method'=>'form', 'table'=>'download', 'id'=>$id, 'plugin'=>'download', 'function'=>'create_download');
$hooks = $e107->e_event->triggerHook($data);
if(!empty($hooks))
{
$text .= "<tr>
<td colspan='2' >".LAN_HOOKS." </td>
</tr>
";
foreach($hooks as $hook)
{
if(!empty($hook))
{
$text .= "<tr>
<td class='label'>".$hook['caption']."</td>
<td class='control'>".$hook['text']."</td>
</tr>";
}
}
}
$text .= " <tr style=''>
<td colspan='2' style='text-align:center'>";