function imce_user_page in IMCE 5
Same name and namespace in other branches
- 6.2 inc/imce.page.inc \imce_user_page()
- 6 inc/page.inc \imce_user_page()
- 7 inc/imce.page.inc \imce_user_page()
IMCE user/x/imce page.
1 string reference to 'imce_user_page'
- imce_menu in ./
imce.module - Implementation of hook_menu().
File
- ./
imce.module, line 793
Code
function imce_user_page($acc) {
if ($GLOBALS['user']->uid == $acc->uid) {
//user
$output = '<iframe id="imce-frame" height="500px" width="99%" name="imce-frame" src="' . url('imce/browse') . '" scrolling="no"></iframe>';
}
else {
//admin
$output = '<p class="imce-login">' . t('Browse this user\'s files using !yours or !his', array(
'!yours' => l(t('your privileges'), 'imce/login/' . $acc->uid, array(
'target' => 'imce-frame',
)),
'!his' => l(t('his/her privileges'), 'imce/login/' . $acc->uid . '/own', array(
'target' => 'imce-frame',
)),
)) . '</p><br /><iframe id="imce-frame" height="500px" width="99%" name="imce-frame" src="about:blank" scrolling="no"></iframe>';
}
drupal_set_title($acc->name);
return $output;
}