C:/drupal/install.php File Reference

Go to the source code of this file.


Enumerations

enum  MAINTENANCE_MODE

Functions

 install_main ()
 install_verify_drupal ()
 install_verify_settings ()
 install_change_settings ($profile= 'default', $install_locale= '')
 install_settings_form (&$form_state, $profile, $install_locale, $settings_file, $db_url, $db_type, $db_prefix, $db_user, $db_pass, $db_host, $db_port, $db_path)
 install_settings_form_validate ($form, &$form_state)
 _install_settings_form_validate ($db_prefix, $db_type, $db_user, $db_pass, $db_host, $db_port, $db_path, $settings_file, &$form_state, $form=NULL)
 install_settings_form_submit ($form, &$form_state)
 install_find_profiles ()
 install_select_profile ()
 install_select_profile_form (&$form_state, $profiles)
 install_find_locales ($profilename)
 install_select_locale ($profilename)
 install_select_locale_form (&$form_state, $locales)
 install_no_profile_error ()
 install_already_done_error ()
 install_tasks ($profile, $task)
 _install_module_batch ($module, $module_name, &$context)
 _install_profile_batch_finished ($success, $results)
 _install_locale_initial_batch_finished ($success, $results)
 _install_locale_remaining_batch_finished ($success, $results)
 install_reserved_tasks ()
 install_check_requirements ($profile, $verify)
 install_task_list ($active=NULL)
 install_configure_form (&$form_state, $url)
 install_configure_form_validate ($form, &$form_state)
 install_configure_form_submit ($form, &$form_state)


Enumeration Type Documentation

Global flag to indicate that site is in installation mode.

Definition at line 9 of file install.php.


Function Documentation

_install_locale_initial_batch_finished ( success,
results 
)

Finished callback for the first locale import batch.

Advance installer task to the configure screen.

Definition at line 844 of file install.php.

References variable_set().

Here is the call graph for this function:

_install_locale_remaining_batch_finished ( success,
results 
)

Finished callback for the second locale import batch.

Advance installer task to the finished screen.

Definition at line 853 of file install.php.

References variable_set().

Here is the call graph for this function:

_install_module_batch ( module,
module_name,
&$  context 
)

Batch callback for batch installation of modules.

Definition at line 819 of file install.php.

References _drupal_install_module(), and module_enable().

Here is the call graph for this function:

_install_profile_batch_finished ( success,
results 
)

Finished callback for the modules install batch.

Advance installer task to language import.

Definition at line 835 of file install.php.

References variable_set().

Here is the call graph for this function:

_install_settings_form_validate ( db_prefix,
db_type,
db_user,
db_pass,
db_host,
db_port,
db_path,
settings_file,
&$  form_state,
form = NULL 
)

Helper function for install_settings_validate.

Definition at line 353 of file install.php.

References $db_prefix, $db_url, drupal_detect_database_types(), drupal_install_profile_name(), form_set_error(), form_set_value(), and st().

Referenced by install_settings_form_validate(), and install_verify_settings().

Here is the call graph for this function:

install_already_done_error (  ) 

Show an error page when Drupal has already been installed.

Definition at line 600 of file install.php.

References $base_url, drupal_set_title(), exit, print, st(), and theme().

Referenced by install_change_settings(), install_main(), and install_tasks().

Here is the call graph for this function:

install_change_settings ( profile = 'default',
install_locale = '' 
)

Configure and rewrite settings.php.

Definition at line 179 of file install.php.

References $db_prefix, $db_url, $output, $url, conf_path(), drupal_get_form(), drupal_set_title(), exit, install_already_done_error(), install_task_list(), print, st(), and theme().

Referenced by install_main().

Here is the call graph for this function:

install_check_requirements ( profile,
verify 
)

Check installation requirements and report any errors.

Definition at line 867 of file install.php.

References conf_path(), drupal_check_profile(), drupal_install_profile_name(), drupal_requirements_severity(), drupal_set_message(), drupal_verify_install_file(), and st().

Referenced by install_main().

Here is the call graph for this function:

install_configure_form ( &$  form_state,
url 
)

Form API array definition for site configuration.

Definition at line 987 of file install.php.

References $url, and st().

Here is the call graph for this function:

install_configure_form_submit ( form,
&$  form_state 
)

Form API submit for the site configuration form.

Definition at line 1116 of file install.php.

References drupal_install_modules(), and variable_set().

Here is the call graph for this function:

install_configure_form_validate ( form,
&$  form_state 
)

Form API validate for the site configuration form.

Definition at line 1101 of file install.php.

References form_error().

Here is the call graph for this function:

install_find_locales ( profilename  ) 

Find all .po files for the current profile.

Definition at line 485 of file install.php.

References file_scan_directory().

Referenced by install_select_locale(), and install_task_list().

Here is the call graph for this function:

install_find_profiles (  ) 

Find all .profile files.

Definition at line 418 of file install.php.

References file_scan_directory().

Referenced by install_select_profile(), and install_task_list().

Here is the call graph for this function:

install_main (  ) 

The Drupal installation happens in a series of steps. We begin by verifying that the current environment meets our minimum requirements. We then go on to verify that settings.php is properly configured. From there we connect to the configured database and verify that it meets our minimum requirements. Finally we can allow the user to select an installation profile and complete the installation process.

Parameters:
$phase The installation phase we should proceed to.

Definition at line 22 of file install.php.

References $messages, $module_list, db_set_active(), drupal_bootstrap(), drupal_init_language(), drupal_install_system(), drupal_load(), drupal_maintenance_theme(), drupal_page_header(), drupal_set_message(), drupal_set_title(), drupal_verify_profile(), exit, install_already_done_error(), install_change_settings(), install_check_requirements(), install_goto(), install_no_profile_error(), install_select_locale(), install_select_profile(), install_task_list(), install_tasks(), install_verify_drupal(), install_verify_settings(), module_list(), print, st(), theme(), and variable_set().

Here is the call graph for this function:

install_no_profile_error (  ) 

Show an error page when there are no profiles available.

Definition at line 589 of file install.php.

References drupal_set_title(), exit, install_task_list(), print, st(), and theme().

Referenced by drupal_check_profile(), drupal_verify_profile(), and install_main().

Here is the call graph for this function:

install_reserved_tasks (  ) 

The list of reserved tasks to run in the installer.

Definition at line 860 of file install.php.

Referenced by install_tasks().

install_select_locale ( profilename  ) 

Allow admin to select which locale to use for the current profile.

Returns:
The selected language.

Definition at line 497 of file install.php.

References $output, drupal_get_form(), drupal_set_title(), exit, install_find_locales(), install_task_list(), name, print, st(), and theme().

Referenced by install_main().

Here is the call graph for this function:

install_select_locale_form ( &$  form_state,
locales 
)

Form API array definition for language selection.

Definition at line 562 of file install.php.

References $name, _locale_get_predefined_list(), name, and st().

Here is the call graph for this function:

install_select_profile (  ) 

Allow admin to select which profile to install.

Returns:
The selected profile.

Definition at line 428 of file install.php.

References drupal_get_form(), drupal_set_title(), exit, install_find_profiles(), install_task_list(), name, print, st(), and theme().

Referenced by install_main().

Here is the call graph for this function:

install_select_profile_form ( &$  form_state,
profiles 
)

Form API array definition for the profile selection form.

Definition at line 456 of file install.php.

References $name, name, and st().

Here is the call graph for this function:

install_settings_form ( &$  form_state,
profile,
install_locale,
settings_file,
db_url,
db_type,
db_prefix,
db_user,
db_pass,
db_host,
db_port,
db_path 
)

Form API array definition for install_settings.

Definition at line 213 of file install.php.

References $db_prefix, drupal_detect_database_types(), drupal_install_profile_name(), and st().

Here is the call graph for this function:

install_settings_form_submit ( form,
&$  form_state 
)

Form API submit for install_settings form.

Definition at line 397 of file install.php.

References drupal_rewrite_settings(), and install_goto().

Here is the call graph for this function:

install_settings_form_validate ( form,
&$  form_state 
)

Form API validate for install_settings form.

Definition at line 345 of file install.php.

References $db_url, and _install_settings_form_validate().

Here is the call graph for this function:

install_task_list ( active = NULL  ) 

Add the installation task list to the current page.

Definition at line 928 of file install.php.

References $result, drupal_set_content(), install_find_locales(), install_find_profiles(), st(), and theme_task_list().

Referenced by install_change_settings(), install_main(), install_no_profile_error(), install_select_locale(), install_select_profile(), and install_tasks().

Here is the call graph for this function:

install_tasks ( profile,
task 
)

install_verify_drupal (  ) 

Verify if Drupal is installed.

Definition at line 140 of file install.php.

References $result, db_query(), and db_result().

Referenced by install_main().

Here is the call graph for this function:

install_verify_settings (  ) 

Verify existing settings.php

Definition at line 151 of file install.php.

References $db_prefix, $db_url, $url, _install_settings_form_validate(), conf_path(), and form_get_errors().

Referenced by install_main().

Here is the call graph for this function:


Generated on Mon Jun 2 15:08:13 2008 for SimpleTest by  1.5.5