You are here

function tinybrowser_admin_profile in TinyBrowser 7

Admin profile

2 calls to tinybrowser_admin_profile()
tinybrowser_admin_theme in ./tinybrowser.module
tinybrowser_install_profiles in ./tinybrowser.profile.inc
Install initial role profiles

File

./tinybrowser.profile.inc, line 42

Code

function tinybrowser_admin_profile() {
  global $base_path;
  $profiles = variable_get('tinybrowser_profiles', array());
  if (isset($profile[1])) {
    return $profile[1];
  }
  $file_dir_path = base_path() . tinybrowser_file_directory_path();
  $path_file = $file_dir_path . '/';
  $path_image = $file_dir_path . '/images/';
  $path_media = $file_dir_path . '/media/';
  $profile = array(
    'name' => 'Admin',
    'max_file_size' => 0,
    'max_image_size' => 0,
    'directory' => array(
      'path_file' => $path_file,
      'path_image' => $path_image,
      'path_media' => $path_media,
      'quota' => 0,
    ),
    'permissions' => array(
      'upload' => 'upload',
      'edit' => 'edit',
      'folders' => 'folders',
      'delete' => 'delete',
      'userpage' => 'userpage',
    ),
    'imagestyle' => 1,
  );
  return $profile;
}