Closed (fixed)
Project:
Cpanel Operations
Version:
7.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Sep 2012 at 08:32 UTC
Updated:
8 Oct 2012 at 07:11 UTC
Permissions are not showing on D7, I fixed it by changing the code below:
function cpanel_ops_perm() {
return array('administer cpanel operations', 'access cpanel operations', 'create new mysql database', 'create new ftp account', 'create new email account');
}to
function cpanel_ops_permission() {
$t = get_t();
return array(
'administer cpanel operations' => array(
'title' => $t('administer cpanel operations'),
'description' => $t(''),
),
'access cpanel operations' => array(
'title' => $t('access cpanel operations'),
'description' => $t(''),
),
'create new mysql database' => array(
'title' => $t('create new mysql database'),
'description' => $t(''),
),
'create new ftp account' => array(
'title' => $t('create new ftp account'),
'description' => $t(''),
),
'create new email account' => array(
'title' => t('create new email account'),
'description' => $t(''),
)
);
}
Comments
Comment #1
compujohnny commentedFixed, thanks for reporting
Comment #2
truls1502You forgot to add
$t = get_t();in version of 7.x-1.3, and it need to be updated.Comment #3
compujohnny commentedFixed, sorry I forgot to add it