function is_same($array1, $array2)
{
if(count($array1) == count($array2)) {
sort($array1);
sort($array2);
foreach($array1 as $k => $val) {
if($array1[$k] != $array2[$k]) return false;
}
}
else
return false;
return true;
}
This blog contains code bank related to opensource like PHP, MySQL, Zend Framework, Perl, Linux, CakePHP, Joomla, Drupal, JQuery etc.
Wednesday, December 15, 2010
Monday, November 15, 2010
Drupal 6 - How to place regions/block position
Step 1: Open template .info file and define the region name
regions[region_name] = Region Label
Step 2: In page.tpl.php file write the code
<?php print $region_name; ?>
Step 3: From admin section under
Home » Administer » Site building » Blocks
You will have a look of the all regions/block positions. You can assign your block to your regions.
Step 4: Go to website, you will be able to see the content on your own region/block position.
regions[region_name] = Region Label
Step 2: In page.tpl.php file write the code
<?php print $region_name; ?>
Step 3: From admin section under
Home » Administer » Site building » Blocks
You will have a look of the all regions/block positions. You can assign your block to your regions.
Step 4: Go to website, you will be able to see the content on your own region/block position.
Subscribe to:
Posts (Atom)