system.module

Configuration system that lets administrators modify the workings of the site.

File

core/modules/system/system.module

Functions

Name Description
system_admin_compact_mode Determines whether the current user is in compact mode.
system_authorized_batch_process Use authorize.php to run batch_process().
system_authorized_batch_processing_url Returns the URL for the authorize.php script when it is processing a batch.
system_authorized_get_url Return the URL for the authorize.php script.
system_authorized_init Setup a given callback to run via authorize.php with elevated privileges.
system_authorized_run Setup and invoke an operation using authorize.php.
system_block_view_system_main_block_alter Implements hook_block_view_BASE_BLOCK_ID_alter().
system_check_directory Checks the existence of the directory specified in $form_element.
system_cron Implements hook_cron().
system_default_region Gets the name of the default region for a given theme.
system_entity_type_build Implements hook_entity_type_build().
system_filetransfer_info Implements hook_filetransfer_info().
system_form_alter Implements hook_form_alter().
system_form_user_form_alter Implements hook_form_FORM_ID_alter() for \Drupal\user\AccountForm.
system_form_user_register_form_alter Implements hook_form_FORM_ID_alter() for \Drupal\user\RegisterForm.
system_get_info Returns an array of information about enabled modules or themes.
system_get_module_admin_tasks Generate a list of tasks offered by a specified module.
system_help Implements hook_help().
system_hook_info Implements hook_hook_info().
system_js_settings_alter Implements hook_js_settings_alter().
system_js_settings_build Implements hook_js_settings_build().
system_mail Implements hook_mail().
system_page_attachments Implements hook_page_attachments().
system_path_delete Implements hook_path_delete().
system_path_insert Implements hook_path_insert().
system_path_update Implements hook_path_update().
system_preprocess_block Implements hook_preprocess_HOOK() for block templates.
system_query_entity_reference_alter Implements hook_query_TAG_alter() for entity reference selection handlers.
system_rebuild_module_data Rebuild, save, and return data about all currently available modules.
system_region_list Get a list of available regions from a specified theme.
system_retrieve_file Attempts to get a file using Guzzle HTTP client and to store it locally.
system_sort_modules_by_info_name Array sorting callback; sorts modules by their name.
system_sort_themes Sorts themes by their names, with the default theme listed first.
system_system_info_alter Implements hook_system_info_alter().
system_theme Implements hook_theme().
system_theme_suggestions_field Implements hook_theme_suggestions_HOOK().
system_theme_suggestions_html Implements hook_theme_suggestions_HOOK().
system_theme_suggestions_maintenance_page Implements hook_theme_suggestions_HOOK().
system_theme_suggestions_page Implements hook_theme_suggestions_HOOK().
system_theme_suggestions_region Implements hook_theme_suggestions_HOOK().
system_time_zones Generate an array of time zones and their local time&date.
system_updater_info Implements hook_updater_info().
system_user_login Implements hook_user_login().
system_user_presave Implements hook_ENTITY_TYPE_presave() for user entities.
system_user_timezone Add the time zone field to the user edit and register forms.
template_preprocess_entity_add_list Prepares variables for the list of available bundles.
_system_rebuild_module_data Helper function to scan and collect module .info.yml data.
_system_rebuild_module_data_ensure_required Ensures that dependencies of required modules are also required.

Constants

Name Description
DRUPAL_DISABLED Disabled option on forms and settings
DRUPAL_OPTIONAL Optional option on forms and settings
DRUPAL_REQUIRED Required option on forms and settings
DRUPAL_USER_TIMEZONE_DEFAULT New users will be set to the default time zone at registration.
DRUPAL_USER_TIMEZONE_EMPTY New users will get an empty time zone at registration.
DRUPAL_USER_TIMEZONE_SELECT New users will select their own timezone at registration.
REGIONS_ALL Return all regions.
REGIONS_VISIBLE Return only visible regions.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!system!system.module/8.1.x