You are here

function imce_install_profiles in IMCE 7

Same name and namespace in other branches
  1. 6.2 inc/imce.core.profiles.inc \imce_install_profiles()
  2. 6 inc/core_profiles.inc \imce_install_profiles()

Create core profiles.

1 call to imce_install_profiles()
imce_install in ./imce.install
Implements hook_install().

File

inc/imce.core.profiles.inc, line 11
Creates the default configuration profiles.

Code

function imce_install_profiles() {
  $profiles = variable_get('imce_profiles', array());

  // Already installed.
  if (isset($profiles[1]) && !empty($profiles[1])) {
    return TRUE;
  }
  $profiles[1] = imce_user1_profile();
  $profiles[2] = imce_sample_profile();
  variable_set('imce_profiles', $profiles);
  return TRUE;
}