Commit 017418a3 authored by jlscott's avatar jlscott Committed by Steven Jones

Issue #1441970 by jlscott: Fixed Client Block assigned by default to non-existing region.

parent 2e4fe294
......@@ -759,20 +759,20 @@ function hosting_client_list() {
*/
function hosting_client_block($op = 'list', $delta = 0, $edit = array()) {
$blocks = array();
if (user_access('view client')) {
switch ($op) {
case 'list' :
$blocks['hosting_clients'] = array('info' => t('Hosting clients'),
'enabled' => 1, 'region' => 'left', 'weight' => 10);
break;
case 'view' :
switch ($delta) {
case 'hosting_clients':
switch ($op) {
case 'list' :
$blocks['hosting_clients'] = array('info' => t('Hosting clients'),
'enabled' => 1, 'region' => 'left', 'weight' => 10);
break;
case 'view' :
switch ($delta) {
case 'hosting_clients':
if (user_access('view client')) {
$blocks['title'] = t('Clients');
$blocks['content'] = hosting_client_list();
break;
}
}
}
break;
}
}
return $blocks;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment