12-01-2014, 09:48 AM
Hi.
I don't have, but you can replicate the same that in Contacts module.
You can create a new field like imagename in contacts, look in vtiger_field table to find the uitype. And after you can reproduce the Contacts save_module():
Just copy the insertIntoAttachment function defination and adapt to Accounts module.
I don't have, but you can replicate the same that in Contacts module.
You can create a new field like imagename in contacts, look in vtiger_field table to find the uitype. And after you can reproduce the Contacts save_module():
Code:
function save_module($module)
{
$this->insertIntoAttachment($this->id,$module);
}