You are here

function openatrium_profile_modules in Open Atrium 6

Implementation of hook_profile_modules().

File

./openatrium.profile, line 17

Code

function openatrium_profile_modules() {
  $modules = array(
    // Drupal core
    'block',
    'comment',
    'dblog',
    'filter',
    'help',
    'menu',
    'node',
    'openid',
    'search',
    'system',
    'taxonomy',
    'upload',
    'user',
    // Admin
    'admin',
    // Views
    'views',
    // OG
    'og',
    'og_access',
    'og_views',
    // CTools
    'ctools',
    // Context
    'context',
    'context_ui',
    'context_layouts',
    // Date
    'date_api',
    'date_timezone',
    // Features
    'features',
    // Image
    'imageapi',
    'imageapi_gd',
    'imagecache',
    // Token
    'token',
    // Transliteration
    'transliteration',
    // Libraries
    'libraries',
    // Messaging
    'messaging',
    'messaging_mail',
    // Notifications
    'notifications',
    'notifications_content',
    'notifications_views',
    // Open ID
    'openidadmin',
    // PURL
    'purl',
    // Spaces
    'spaces',
    'spaces_user',
    'spaces_og',
    // Ucreate
    'ucreate',
    'ucreate_og',
    // jQuery Update
    'jquery_update',
  );

  // If language is not English we add the 'atrium_translate' module the first
  // To get some modules installed properly we need to have translations loaded
  // We also use it to check connectivity with the translation server on hook_requirements()
  if (_openatrium_language_selected()) {

    // We need locale before l10n_update because it adds fields to locale tables
    $modules[] = 'locale';
    $modules[] = 'l10n_update';

    //$modules[] = 'atrium_translate';
  }
  return $modules;
}