<br clear="all">How to make custom block , by default left region,<div><br></div><div>this is my snippet</div><div><br></div><div><div><?php</div><div>function contactus_block($op='list', $delta=0) {</div><div>
// listing of blocks, such as on the admin/block page</div><div> if ($op == "list") {</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> $blocks[0] = array('info'=> t('Contact Us Block'),'weight' => 0, 'enabled' => 1, 'region' => 'left');</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span> return $blocks;</div><div> }</div><div> else if ($op == 'view') {</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>$ganesh = "weclome";</div>
<div> $block['content'] = $ganesh;</div><div> return $block;</div><div> }</div><div>}</div><div><br></div><div>function contactus_perm() {</div><div><br></div><div>return array('access contactus', 'create contactus', 'administer contactus');</div>
<div><br></div><div>} </div><div><br></div><div><br><div><br></div><div><br>-- <br>உங்கள் நண்பன் <br>பரணி குமார் <br><br>Regards<br>B.S.Bharanikumar<br><br>POST YOUR OPINION <br><a href="http://bharanikumariyerphp.site88.net/bharanikumar/">http://bharanikumariyerphp.site88.net/bharanikumar/</a><br>
</div></div></div>