I am creating the block using the following code , but i need to dsiplay this block only in specific pages only . How can i achieve this ?
function mailusers_block($op = 'list', $delta = 0, $edit = array()) {
if ($op == 'list') {
$blocks[0] = array(
'info' => t('User Management block'),
'weight' => 0,
'status' => 1,
'region' => 'left',
);
return $blocks;
}
else if ($op == 'save' && $delta == 0) {
variable_set('test_block_items', $edit['items']);
}
else if ($op == 'view') {
switch ($delta) {
case 0:
// Your module will need to define this function to render the block.
$block = array(
'subject' => t('User Group Management'),
'content' => mailuser_block_conent(),
);
break;
}
return $block;
}
}
function mailuser_block_conent(){
//create menu links
$ret = '<a href="'.$base_url.'/mailusers/adduser">Add User </a>';
return $ret;
}