hook in form_attach_new_file(html.formfile.class.php)
This commit is contained in:
parent
0ca4e4ffe8
commit
2fc07d05e9
@ -64,7 +64,8 @@ class FormFile
|
|||||||
*/
|
*/
|
||||||
function form_attach_new_file($url, $title='', $addcancel=0, $sectionid=0, $perm=1, $size=50, $object='', $options='', $useajax=true)
|
function form_attach_new_file($url, $title='', $addcancel=0, $sectionid=0, $perm=1, $size=50, $object='', $options='', $useajax=true)
|
||||||
{
|
{
|
||||||
global $conf,$langs;
|
global $conf,$langs, $hookmanager;
|
||||||
|
$hookmanager->initHooks(array('formfile'));
|
||||||
|
|
||||||
if (! empty($conf->browser->phone)) return 0;
|
if (! empty($conf->browser->phone)) return 0;
|
||||||
|
|
||||||
@ -139,6 +140,8 @@ class FormFile
|
|||||||
if (empty($sectionid)) print '<br>';
|
if (empty($sectionid)) print '<br>';
|
||||||
|
|
||||||
print "\n<!-- End form attach new file -->\n\n";
|
print "\n<!-- End form attach new file -->\n\n";
|
||||||
|
$parameters = array('socid'=>(isset($GLOBALS['socid'])?$GLOBALS['socid']:''),'id'=>(isset($GLOBALS['id'])?$GLOBALS['id']:''), 'url'=>$url);
|
||||||
|
print $hookmanager->executeHooks('formattachOptions',$parameters,$object);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user