You are here

function theme_imce_user_page in IMCE 7

Same name and namespace in other branches
  1. 6.2 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
The q = user/x/imce.

File

inc/imce.page.inc, line 1258
Implements the file browser.

Code

function theme_imce_user_page($variables) {
  global $user;
  $account = $variables['account'];
  $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>';
}