function theme_imce_user_page in IMCE 6.2
Same name and namespace in other branches
- 7 inc/imce.page.inc \theme_imce_user_page()
Returns the html for user's file browser tab.
1 theme call to theme_imce_user_page()
- imce_user_page in inc/
imce.page.inc - q = user/x/imce.
File
- inc/
imce.page.inc, line 1119 - Implements the file browser.
Code
function theme_imce_user_page($account) {
global $user;
$options = array();
//switch to account's active folder
if ($user->uid == 1 && $account->uid != 1) {
$imce = imce_initiate_profile($account);
$options['query'] = array(
'dir' => $imce['dir'],
);
}
return '<iframe src="' . url('imce', $options) . '" frameborder="0" style="border: 1px solid #eee; width: 99%; height: 520px" class="imce-frame"></iframe>';
}