Skip to content

Instantly share code, notes, and snippets.

@zachseifts
Created November 28, 2011 21:16
Show Gist options
  • Save zachseifts/1402108 to your computer and use it in GitHub Desktop.
Save zachseifts/1402108 to your computer and use it in GitHub Desktop.
<?php
$imce_profiles = array(
1 => array(
'name'=> 'User-1',
'usertab'=> 1,
'filesize'=> 0,
'quota'=> 0,
'tuquota'=> 0,
'extensions'=> '*',
'dimensions'=> 0,
'filenum'=> 0,
'directories'=> array(
0 => array(
'name' => '.',
'subnav' => 1,
'browse' => 1,
'upload' => 1,
'thumb' => 1,
'delete' => 1,
'resize' => 1,
'mkdir' => 1,
'rmdir' => 1,
)),
'thumbnails' => array(),
'mkdirnum' => 0
),
2 => array(
'name'=> 'Global',
'usertab'=> 1,
'filesize'=> 0,
'quota'=> 500,
'tuquota'=> 500,
'extensions'=> '*',
'dimensions'=> 0,
'filenum'=> 0,
'directories'=> array(
0 => array(
'name' => '.',
'subnav' => 1,
'browse' => 1,
'upload' => 1,
'thumb' => 1,
'delete' => 1,
'resize' => 1,
'mkdir' => 1,
'rmdir' => 1,
)),
'thumbnails' => array(),
'mkdirnum' => 0
),
);
variable_set('imce_profiles', $imce_profiles);
@shrop
Copy link

shrop commented Nov 28, 2011

hmmm.. D6 or D7. Using this to load profiles during install? Thanks man!

@zachseifts
Copy link
Author

Shrop, it works with either

@shrop
Copy link

shrop commented Nov 28, 2011

Boom! cool. Will have to check this out. thanks man!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment