<span id="result_box" class="short_text" lang="en"><span class="hps">what I need</span> <span class="hps">is to move field:<br><br>phone<br></span></span>otherphone<br>email1<br>email2<br>fax<br><br>ecc<br><div class="gmail_quote">
from block "LBL_ACCOUNT_INFORMATION"<br>to other blok using vtlibs!<br><br><br><br><br>2012/10/24 Adam Heinz <span dir="ltr"><<a href="mailto:amh@metricwise.net" target="_blank">amh@metricwise.net</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I don't quite understand your english, but here goes:<br>
<br>
Doesn't the Accounts module already provide for both account<br>
information and related contact information? If that is insufficient,<br>
maybe this example code can push you in the right direction.<br>
<br>
require_once('vtlib/Vtiger/Module.php');<br>
require_once('vtlib/Vtiger/Block.php');<br>
require_once('vtlib/Vtiger/Field.php');<br>
<br>
$module = Vtiger_Module::getInstance('Accounts');<br>
<br>
$block = new Vtiger_Block();<br>
$block->label = 'LBL_CONTACT_INFORMATION'; // Add label translations<br>
$block->save($module);<br>
<br>
$field = new Vtiger_Field();<br>
$field->label = 'foo';<br>
$field->name = 'foo';<br>
$field->table = 'vtiger_accountscf';<br>
$field->column = 'foo';<br>
$field->columntype = 'INTEGER(1)';<br>
$field->uitype = 56; // Checkbox<br>
$field->typeofdata = 'C~O';<br>
$block->addField($field);<br>
<br>
2012/10/24 Matteo Baranzoni <<a href="mailto:barra@greenbitweb.com">barra@greenbitweb.com</a>>:<br>
<div class="im">> Hy,<br>
> in Account modules i create da "contact information" block with email,<br>
> phone, mobile ecc.<br>
><br>
> Usually i move existing modules working directly on DB.<br>
> it is possible do this via the vtlibs?<br>
><br>
> --<br>
> Matteo Baranzoni - Greenbit WEB<br>
</div>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Matteo Baranzoni - Greenbit WEB<br><br><font style="color:rgb(153,153,153)" size="1"><b>:: Avvertenze Legali ::</b><br>Questa email, e ogni eventuale allegato, è a uso esclusivo della Persona o della Società/Ente a cui è indirizzato e potrebbe contenere informazioni riservate. Se avete ricevuto questa email per errore, ci scusiamo per l'accaduto e Vi preghiamo cortesemente di darcene sollecita comunicazione e a cancellare l'email e ogni eventuale allegato. Vi ricordiamo che l'utilizzo, la conservazione, la distribuzione e/o la diffusione dei dati ricevuti per errore costituiscono violazioni alle disposizioni del D.Lgs. 196/03 (Codice della Privacy).<br>
This e-mail, and any attachment, is for the intended recipient only and is confidential. If this e-mail has been misdirected, please let the sender know and delete it with any attachment, thanks. Any disclosure, copying, distribution is prohibited</font><br>
<br><br>