<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 &quot;LBL_ACCOUNT_INFORMATION&quot;<br>to other blok using vtlibs!<br><br><br><br><br>2012/10/24 Adam Heinz <span dir="ltr">&lt;<a href="mailto:amh@metricwise.net" target="_blank">amh@metricwise.net</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I don&#39;t quite understand your english, but here goes:<br>
<br>
Doesn&#39;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(&#39;vtlib/Vtiger/Module.php&#39;);<br>
require_once(&#39;vtlib/Vtiger/Block.php&#39;);<br>
require_once(&#39;vtlib/Vtiger/Field.php&#39;);<br>
<br>
$module = Vtiger_Module::getInstance(&#39;Accounts&#39;);<br>
<br>
$block = new Vtiger_Block();<br>
$block-&gt;label = &#39;LBL_CONTACT_INFORMATION&#39;; // Add label translations<br>
$block-&gt;save($module);<br>
<br>
$field = new Vtiger_Field();<br>
$field-&gt;label = &#39;foo&#39;;<br>
$field-&gt;name = &#39;foo&#39;;<br>
$field-&gt;table = &#39;vtiger_accountscf&#39;;<br>
$field-&gt;column = &#39;foo&#39;;<br>
$field-&gt;columntype = &#39;INTEGER(1)&#39;;<br>
$field-&gt;uitype = 56; // Checkbox<br>
$field-&gt;typeofdata = &#39;C~O&#39;;<br>
$block-&gt;addField($field);<br>
<br>
2012/10/24 Matteo Baranzoni &lt;<a href="mailto:barra@greenbitweb.com">barra@greenbitweb.com</a>&gt;:<br>
<div class="im">&gt; Hy,<br>
&gt; in Account modules i create da &quot;contact information&quot; block with email,<br>
&gt; phone, mobile ecc.<br>
&gt;<br>
&gt; Usually i move existing modules working directly on DB.<br>
&gt; it is possible do this via the vtlibs?<br>
&gt;<br>
&gt; --<br>
&gt; 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&#39;accaduto e Vi preghiamo cortesemente di darcene sollecita comunicazione e a cancellare l&#39;email e ogni eventuale allegato. Vi ricordiamo che l&#39;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>