[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/includes/ -> install.inc (summary)

(no description)

File Size: 737 lines (23 kb)
Included or required: 20 times
Referenced: 0 times
Includes or requires: 4 files
 includes/locale.inc
 includes/common.inc
 includes/theme.inc
 includes/file.inc

Defines 22 functions

  drupal_load_updates()
  drupal_get_schema_versions()
  drupal_get_installed_schema_version()
  drupal_set_installed_schema_version()
  drupal_install_profile_name()
  drupal_detect_baseurl()
  drupal_detect_database_types()
  drupal_rewrite_settings()
  drupal_get_install_files()
  drupal_verify_profile()
  drupal_install_modules()
  _drupal_install_module()
  drupal_install_system()
  drupal_uninstall_module()
  drupal_verify_install_file()
  drupal_install_mkdir()
  drupal_install_fix_file()
  install_goto()
  st()
  drupal_check_profile()
  drupal_requirements_severity()
  drupal_check_module()

Functions
Functions that are not part of a class:

drupal_load_updates()   X-Ref
Initialize the update system by loading all installed module's .install files.


drupal_get_schema_versions($module)   X-Ref
Returns an array of available schema versions for a module.

param: $module
return:

drupal_get_installed_schema_version($module, $reset = FALSE, $array = FALSE)   X-Ref
Returns the currently installed schema version for a module.

param: $module
param: $reset
param: $array
return:

drupal_set_installed_schema_version($module, $version)   X-Ref
Update the installed version information for a module.

param: $module
param: $version

drupal_install_profile_name()   X-Ref
Loads the profile definition, extracting the profile's defined name.

return:

drupal_detect_baseurl($file = 'install.php')   X-Ref
Auto detect the base_url with PHP predefined variables.

param: $file
return:

drupal_detect_database_types()   X-Ref
Detect all databases supported by Drupal that are compiled into the current
PHP installation.

return:

drupal_rewrite_settings($settings = array()   X-Ref
Read settings.php into a buffer line by line, changing values specified in
$settings array, then over-writing the old settings.php file.

param: $settings

drupal_get_install_files($module_list = array()   X-Ref
Get list of all .install files.

param: $module_list

drupal_verify_profile($profile, $locale)   X-Ref
Verify a profile for installation.

param: profile
param: locale
return:

drupal_install_modules($module_list = array()   X-Ref
Calls the install function and updates the system table for a given list of
modules.

param: module_list

_drupal_install_module($module)   X-Ref
Callback to install an individual profile module.

Used during installation to install modules one at a time and then
enable them, or to install a number of modules at one time
from admin/build/modules.

drupal_install_system()   X-Ref
Callback to install the system module.

Separated from the installation of other modules so core system
functions can be made available while other modules are installed.

drupal_uninstall_module($module)   X-Ref
Calls the uninstall function and updates the system table for a given module.

param: $module

drupal_verify_install_file($file, $mask = NULL, $type = 'file')   X-Ref
Verify the state of the specified file.

param: $file
param: $mask
param: $type
return:

drupal_install_mkdir($file, $mask, $message = TRUE)   X-Ref
Create a directory with specified permissions.

param: file
param: mask
param: $message
return:

drupal_install_fix_file($file, $mask, $message = TRUE)   X-Ref
Attempt to fix file permissions.

The general approach here is that, because we do not know the security
setup of the webserver, we apply our permission changes to all three
digits of the file permission (i.e. user, group and all).

To ensure that the values behave as expected (and numbers don't carry
from one digit to the next) we do the calculation on the octal value
using bitwise operations. This lets us remove, for example, 0222 from
0700 and get the correct value of 0500.

param: $file
param: $mask
param: $message
return:

install_goto($path)   X-Ref
Send the user to a different installer page. This issues an on-site HTTP
redirect. Messages (and errors) are erased.

param: $path

st($string, $args = array()   X-Ref
Hardcoded function for doing the equivalent of t() during
the install process, when database, theme, and localization
system is possibly not yet available.


drupal_check_profile($profile)   X-Ref
Check a profile's requirements.

param: profile

drupal_requirements_severity(&$requirements)   X-Ref
Extract highest severity from requirements array.


drupal_check_module($module)   X-Ref
Check a module's requirements.




Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7