$blocks = array();
//Block for the Normal Site Owners
$blocks['payouts'] = array(
'info' => t('Listing of Payouts'),
'cache' => DRUPAL_NO_CACHE,
);
//Block for the Administrators
$blocks['commission_payments'] = array(
.....
.....
);
function hook_block_view($delta = '') {
global $user;
$block = array();
switch ($delta) {
case 'payouts':
if (in_array('Admin', array_values($user->roles))) {
$block['content'] = t('Hello Admin');
}
break;
case 'commission_payments':
if (in_array('Site Owner', array_values($user->roles))) {
$block['content'] = t('Hello Site Owner');
}
break;
}
return $block;
}