summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorJennifer Hodgdon <yahgrp@poplarware.com>2012-10-10 10:26:08 -0700
committerJennifer Hodgdon <yahgrp@poplarware.com>2012-10-10 10:26:08 -0700
commite27ec205f7d9fc1398f7c46efe5a6c5e216bc3f3 (patch)
tree993c6ecbdfb36e32f7d62d2141358791b96991fa /includes
parent190af5229b324e4426bfd36b06f585976e7db501 (diff)
downloadbrdo-e27ec205f7d9fc1398f7c46efe5a6c5e216bc3f3.tar.gz
brdo-e27ec205f7d9fc1398f7c46efe5a6c5e216bc3f3.tar.bz2
Issue #1799116 by jwilson3: Standardize on installation profile terminology
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc6
-rw-r--r--includes/form.inc4
-rw-r--r--includes/install.core.inc10
-rw-r--r--includes/install.inc20
-rw-r--r--includes/module.inc2
-rw-r--r--includes/unicode.inc4
-rw-r--r--includes/update.inc17
7 files changed, 32 insertions, 31 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 0d390c0e3..5c6d86d7e 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -208,7 +208,7 @@ function drupal_get_region_content($region = NULL, $delimiter = ' ') {
}
/**
- * Gets the name of the currently active install profile.
+ * Gets the name of the currently active installation profile.
*
* When this function is called during Drupal's initial installation process,
* the name of the profile that's about to be installed is stored in the global
@@ -217,7 +217,7 @@ function drupal_get_region_content($region = NULL, $delimiter = ' ') {
* variable_get() to determine what one is active.
*
* @return $profile
- * The name of the install profile.
+ * The name of the installation profile.
*/
function drupal_get_profile() {
global $install_state;
@@ -5277,7 +5277,7 @@ function drupal_cron_cleanup() {
* drupal_system_listing("/\.module$/", "modules", 'name', 0);
* @endcode
* this function will search the site-wide modules directory (i.e., /modules/),
- * your install profile's directory (i.e.,
+ * your installation profile's directory (i.e.,
* /profiles/your_site_profile/modules/), the all-sites directory (i.e.,
* /sites/all/modules/), and your site-specific directory (i.e.,
* /sites/your_site_dir/modules/), in that order, and return information about
diff --git a/includes/form.inc b/includes/form.inc
index 9b5bb32c9..826b6777b 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -728,7 +728,7 @@ function drupal_retrieve_form($form_id, &$form_state) {
// the form builder callbacks can be loaded when the form is being rebuilt
// from cache on a different path (such as 'system/ajax'). See
// form_get_cache().
- // $menu_get_item() is not available at installation time.
+ // $menu_get_item() is not available during installation.
if (!isset($form_state['build_info']['files']['menu']) && !defined('MAINTENANCE_MODE')) {
$item = menu_get_item();
if (!empty($item['include_file'])) {
@@ -4406,7 +4406,7 @@ function batch_set($batch_definition) {
}
// Base and default properties for the batch set.
- // Use get_t() to allow batches at install time.
+ // Use get_t() to allow batches during installation.
$t = get_t();
$init = array(
'sandbox' => array(),
diff --git a/includes/install.core.inc b/includes/install.core.inc
index bba8ce04b..09f3cc50b 100644
--- a/includes/install.core.inc
+++ b/includes/install.core.inc
@@ -523,7 +523,7 @@ function install_tasks($install_state) {
$needs_translations = count($install_state['locales']) > 1 && !empty($install_state['parameters']['locale']) && $install_state['parameters']['locale'] != 'en';
// Start with the core installation tasks that run before handing control
- // to the install profile.
+ // to the installation profile.
$tasks = array(
'install_select_profile' => array(
'display_name' => st('Choose profile'),
@@ -775,7 +775,7 @@ function install_system_module(&$install_state) {
// variable_set() can be used now that system.module is installed.
$modules = $install_state['profile_info']['dependencies'];
- // The install profile is also a module, which needs to be installed
+ // The installation profile is also a module, which needs to be installed
// after all the dependencies have been installed.
$modules[] = drupal_get_profile();
@@ -1441,7 +1441,7 @@ function install_configure_form($form, &$form_state, &$install_state) {
// Add JavaScript time zone detection.
drupal_add_js('misc/timezone.js');
// We add these strings as settings because JavaScript translation does not
- // work on install time.
+ // work during installation.
drupal_add_js(array('copyFieldValue' => array('edit-site-mail' => array('edit-account-mail'))), 'setting');
drupal_add_js('jQuery(function () { Drupal.cleanURLsInstallCheck(); });', 'inline');
// Add JS to show / hide the 'Email administrator about site updates' elements
@@ -1500,13 +1500,13 @@ function install_finished(&$install_state) {
// Flush all caches to ensure that any full bootstraps during the installer
// do not leave stale cached data, and that any content types or other items
- // registered by the install profile are registered correctly.
+ // registered by the installation profile are registered correctly.
drupal_flush_all_caches();
// Remember the profile which was used.
variable_set('install_profile', drupal_get_profile());
- // Install profiles are always loaded last
+ // Installation profiles are always loaded last
db_update('system')
->fields(array('weight' => 1000))
->condition('type', 'module')
diff --git a/includes/install.inc b/includes/install.inc
index 2f50c857c..0372483b6 100644
--- a/includes/install.inc
+++ b/includes/install.inc
@@ -185,11 +185,11 @@ function drupal_set_installed_schema_version($module, $version) {
}
/**
- * Loads the install profile, extracting its defined distribution name.
+ * Loads the installation profile, extracting its defined distribution name.
*
* @return
* The distribution name defined in the profile's .info file. Defaults to
- * "Drupal" if none is explicitly provided by the install profile.
+ * "Drupal" if none is explicitly provided by the installation profile.
*
* @see install_profile_info()
*/
@@ -660,7 +660,7 @@ function drupal_rewrite_settings($settings = array(), $prefix = '') {
}
/**
- * Verifies an install profile for installation.
+ * Verifies an installation profile for installation.
*
* @param $install_state
* An array of information about the current installation state.
@@ -688,8 +688,8 @@ function drupal_verify_profile($install_state) {
$present_modules[] = $present_module->name;
}
- // The install profile is also a module, which needs to be installed after all the other dependencies
- // have been installed.
+ // The installation profile is also a module, which needs to be installed
+ // after all the other dependencies have been installed.
$present_modules[] = drupal_get_profile();
// Verify that all of the profile's required modules are present.
@@ -1148,12 +1148,12 @@ function st($string, array $args = array(), array $options = array()) {
}
/**
- * Checks an install profile's requirements.
+ * Checks an installation profile's requirements.
*
* @param $profile
- * Name of install profile to check.
+ * Name of installation profile to check.
* @return
- * Array of the install profile's requirements.
+ * Array of the installation profile's requirements.
*/
function drupal_check_profile($profile) {
include_once DRUPAL_ROOT . '/includes/file.inc';
@@ -1230,11 +1230,11 @@ function drupal_check_module($module) {
}
/**
- * Retrieves information about an install profile from its .info file.
+ * Retrieves information about an installation profile from its .info file.
*
* The information stored in a profile .info file is similar to that stored in
* a normal Drupal module .info file. For example:
- * - name: The real name of the install profile for display purposes.
+ * - name: The real name of the installation profile for display purposes.
* - description: A brief description of the profile.
* - dependencies: An array of shortnames of other modules that this install
* profile requires.
diff --git a/includes/module.inc b/includes/module.inc
index 72c5938e9..6d9b33f13 100644
--- a/includes/module.inc
+++ b/includes/module.inc
@@ -871,7 +871,7 @@ function drupal_required_modules() {
$files = drupal_system_listing('/^' . DRUPAL_PHP_FUNCTION_PATTERN . '\.info$/', 'modules', 'name', 0);
$required = array();
- // An install profile is required and one must always be loaded.
+ // An installation profile is required and one must always be loaded.
$required[] = drupal_get_profile();
foreach ($files as $name => $file) {
diff --git a/includes/unicode.inc b/includes/unicode.inc
index cd9cd9bf0..81a0a4dfe 100644
--- a/includes/unicode.inc
+++ b/includes/unicode.inc
@@ -96,7 +96,7 @@ function unicode_check() {
* Whether to report any fatal errors with form_set_error().
*/
function _unicode_check() {
- // Ensure translations don't break at install time
+ // Ensure translations don't break during installation.
$t = get_t();
// Check for mbstring extension
@@ -128,7 +128,7 @@ function _unicode_check() {
* Return Unicode library status and errors.
*/
function unicode_requirements() {
- // Ensure translations don't break at install time
+ // Ensure translations don't break during installation.
$t = get_t();
$libraries = array(
diff --git a/includes/update.inc b/includes/update.inc
index 588c4263b..5f1c2331c 100644
--- a/includes/update.inc
+++ b/includes/update.inc
@@ -785,12 +785,12 @@ function update_fix_d7_requirements() {
/**
* Register the currently installed profile in the system table.
*
- * Install profiles are now treated as modules by Drupal, and have an upgrade
- * path based on their schema version in the system table.
+ * Installation profiles are now treated as modules by Drupal, and have an
+ * upgrade path based on their schema version in the system table.
*
- * The install profile will be set to schema_version 0, as it has already been
- * installed. Any other hook_update_N functions provided by the install profile
- * will be run by update.php.
+ * The installation profile will be set to schema_version 0, as it has already
+ * been installed. Any other hook_update_N functions provided by the
+ * installation profile will be run by update.php.
*/
function update_fix_d7_install_profile() {
$profile = drupal_get_profile();
@@ -828,10 +828,10 @@ function update_fix_d7_install_profile() {
'owner' => '',
);
- // Install profile hooks are always executed last by the module system
+ // Installation profile hooks are always executed last by the module system
$values['weight'] = 1000;
- // Initializing the system table entry for the install profile
+ // Initializing the system table entry for the installation profile
db_insert('system')
->fields(array_keys($values))
->values($values)
@@ -840,7 +840,8 @@ function update_fix_d7_install_profile() {
// Reset the cached schema version.
drupal_get_installed_schema_version($profile, TRUE);
- // Load the updates again to make sure the install profile updates are loaded
+ // Load the updates again to make sure the installation profile updates
+ // are loaded.
drupal_load_updates();
}
}