function tinybrowser_sample_profile in TinyBrowser 7
2 calls to tinybrowser_sample_profile()
- tinybrowser_install_profiles in ./
tinybrowser.profile.inc - Install initial role profiles
- tinybrowser_profile_form in ./
tinybrowser.module
File
- ./
tinybrowser.profile.inc, line 75
Code
function tinybrowser_sample_profile() {
$file_dir_path = base_path() . tinybrowser_file_directory_path();
$path_file = $file_dir_path . '/%u/';
$path_image = $file_dir_path . '/%u/images/';
$path_media = $file_dir_path . '/%u/media/';
$profile = array(
'name' => 'Sample',
'max_file_size' => 1048576,
// 1MB
'max_image_size' => '640x480',
'directory' => array(
'path_file' => $path_file,
'path_image' => $path_image,
'path_media' => $path_media,
'quota' => 10485760,
),
'permissions' => array(
'upload' => 'upload',
'edit' => 'edit',
'folders' => 0,
'delete' => 'delete',
'userpage' => 'userpage',
),
'imagestyle' => 0,
);
return $profile;
}