You are here

function theme_imagepicker_user_menu in Image Picker 5

Same name and namespace in other branches
  1. 5.2 imagepicker.module \theme_imagepicker_user_menu()
1 call to theme_imagepicker_user_menu()
imagepicker_user_page in ./imagepicker.module

File

./imagepicker.module, line 1327
Enables permitted roles to upload images for insertion into configured nodes.

Code

function theme_imagepicker_user_menu() {
  global $user;
  $path = "user/" . $user->uid . "/imagepicker";
  $items = array(
    l(t('Upload'), $path),
    l(t('Browse'), "{$path}/browse"),
    l(t('Groups'), "{$path}/groups"),
  );
  $content .= theme_item_list($items, NULL, 'ul', $attributes = array(
    'class' => 'tabs secondary',
  ));
  return $content;
}