[support] How make the block visible lef region as default
bharani kumar
bharanikumariyerphp at gmail.com
Thu Mar 19 12:21:08 UTC 2009
How to make custom block , by default left region,
this is my snippet
<?php
function contactus_block($op='list', $delta=0) {
// listing of blocks, such as on the admin/block page
if ($op == "list") {
$blocks[0] = array('info'=> t('Contact Us Block'),'weight' => 0,
'enabled' => 1, 'region' => 'left');
return $blocks;
}
else if ($op == 'view') {
$ganesh = "weclome";
$block['content'] = $ganesh;
return $block;
}
}
function contactus_perm() {
return array('access contactus', 'create contactus', 'administer
contactus');
}
--
உங்கள் நண்பன்
பரணி குமார்
Regards
B.S.Bharanikumar
POST YOUR OPINION
http://bharanikumariyerphp.site88.net/bharanikumar/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.drupal.org/pipermail/support/attachments/20090319/99d2da9e/attachment.htm>
More information about the support
mailing list