Skip to main content
Hostdog docs
Documentation & API reference
Main menu
Drupal 7
Drupal 8
Drupal 9
You are here
Home
»
API reference
»
Drupal 9.x
»
bootstrap.inc
»
variable_set
Search Drupal 9.x
Function, class, file, topic, etc.
*
Partial match search is supported
API Navigation
Drupal 9.x
Topics
Classes
Functions
Files
Namespaces
Constants
Globals
Deprecated
121 calls to variable_set()
BlockHiddenRegionTest::testBlockNotInHiddenRegion
in drupal/
core/
modules/
block/
lib/
Drupal/
block/
Tests/
BlockHiddenRegionTest.php
Tests that hidden regions do not inherit blocks when a theme is enabled.
BreadcrumbTest::testBreadCrumbs
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Menu/
BreadcrumbTest.php
Tests breadcrumbs on node and administrative paths.
ColorTest::testValidColor
in drupal/
core/
modules/
color/
lib/
Drupal/
color/
Tests/
ColorTest.php
Tests whether the provided color is valid.
ColorTest::_testColor
in drupal/
core/
modules/
color/
lib/
Drupal/
color/
Tests/
ColorTest.php
Tests the Color module functionality using the given theme.
color_scheme_form_submit
in drupal/
core/
modules/
color/
color.module
Form submission handler for
color_scheme_form
().
CommentLinksTest::setEnvironment
in drupal/
core/
modules/
comment/
lib/
Drupal/
comment/
Tests/
CommentLinksTest.php
Re-configures the environment, module settings, and user permissions.
CommentLinksTest::testCommentLinks
in drupal/
core/
modules/
comment/
lib/
Drupal/
comment/
Tests/
CommentLinksTest.php
Tests comment links.
CommentTestBase::setCommentSettings
in drupal/
core/
modules/
comment/
lib/
Drupal/
comment/
Tests/
CommentTestBase.php
Sets a comment settings variable for the article content type.
comment_block_save
in drupal/
core/
modules/
comment/
comment.module
Implements
hook_block_save
().
DirectoryTest::testFileDirectoryTemp
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
File/
DirectoryTest.php
Ensure that the
file_directory_temp
() function always returns a value.
drupal_build_css_cache
in drupal/
core/
includes/
common.inc
Aggregates and optimizes CSS files into a cache file in the files directory.
drupal_get_private_key
in drupal/
core/
includes/
common.inc
Ensures the private key variable used to generate tokens is set.
EntityAccessTest::testEntityTranslationAccess
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Entity/
EntityAccessTest.php
Ensures entity access for entity translations is properly working.
EntityFilteringThemeTest::testThemedEntity
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Theme/
EntityFilteringThemeTest.php
Checks each themed entity for XSS filtering in available themes.
entity_test_form_node_form_alter
in drupal/
core/
modules/
system/
tests/
modules/
entity_test/
entity_test.module
Implements
hook_form_BASE_FORM_ID_alter
().
FieldTestBase::setUp
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FieldTestBase.php
Set the default field storage backend for fields created during tests.
field_attach_rename_bundle
in drupal/
core/
modules/
field/
field.attach.inc
Notifies
field.module
that a bundle was renamed.
field_bundle_settings
in drupal/
core/
modules/
field/
field.module
Gets or sets administratively defined bundle settings.
field_language_delete
in drupal/
core/
modules/
field/
field.multilingual.inc
Implements
hook_language_delete
().
field_language_insert
in drupal/
core/
modules/
field/
field.multilingual.inc
Implements
hook_language_insert
().
file_directory_temp
in drupal/
core/
includes/
file.inc
Gets the path of system-appropriate temporary directory.
FormatDateTest::setUp
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Common/
FormatDateTest.php
Sets up a Drupal site for running functional and integration tests.
forum_install
in drupal/
core/
modules/
forum/
forum.install
Implements
hook_install
().
FrameworkTest::testLazyLoadOverriddenCSS
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Ajax/
FrameworkTest.php
Tests that overridden CSS files are not added during lazy load.
HookBootExitTest::testHookBootExit
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Bootstrap/
HookBootExitTest.php
Tests calling of
hook_boot
() and
hook_exit
().
hook_block_save
in drupal/
core/
modules/
block/
block.api.php
Save the configuration options from
hook_block_configure
().
hook_field_attach_delete_bundle
in drupal/
core/
modules/
field/
field.api.php
Act on field_attach_delete_bundle.
hook_field_attach_rename_bundle
in drupal/
core/
modules/
field/
field.api.php
Act on
field_attach_rename_bundle
().
hook_menu_delete
in drupal/
core/
modules/
menu/
menu.api.php
Informs modules that a custom menu was deleted.
hook_menu_insert
in drupal/
core/
modules/
menu/
menu.api.php
Informs modules that a custom menu was created.
hook_menu_update
in drupal/
core/
modules/
menu/
menu.api.php
Informs modules that a custom menu was updated.
hook_modules_installed
in drupal/
core/
modules/
system/
system.api.php
Perform necessary actions after modules are installed.
hook_node_type_update
in drupal/
core/
modules/
node/
node.api.php
Respond to node type updates.
hook_taxonomy_vocabulary_insert
in drupal/
core/
modules/
taxonomy/
taxonomy.api.php
Act on taxonomy vocabularies when inserted.
hook_taxonomy_vocabulary_update
in drupal/
core/
modules/
taxonomy/
taxonomy.api.php
Act on taxonomy vocabularies when updated.
ImageStylesPathAndUrlTest::_testImageStyleUrlAndPath
in drupal/
core/
modules/
image/
lib/
Drupal/
image/
Tests/
ImageStylesPathAndUrlTest.php
Test
image_style_url
().
InstallerLanguageTest::setUp
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Common/
InstallerLanguageTest.php
Sets up a Drupal site for running functional and integration tests.
install_configure_form_submit
in drupal/
core/
includes/
install.core.inc
Form submission handler for
install_configure_form
().
install_finished
in drupal/
core/
includes/
install.core.inc
Performs final installation steps and displays a 'finished' page.
install_run_task
in drupal/
core/
includes/
install.core.inc
Runs an individual installation task.
install_run_tasks
in drupal/
core/
includes/
install.core.inc
Runs all tasks for the current installation request.
IpAddressTest::testIPAddressHost
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Bootstrap/
IpAddressTest.php
Tests IP address and hostname.
LanguageDependencyInjectionTest::testDependencyInjectedNewDefaultLanguage
in drupal/
core/
modules/
language/
lib/
Drupal/
language/
Tests/
LanguageDependencyInjectionTest.php
Test dependency injected Language object against a new default language object.
LanguageUILanguageNegotiationTest::testLanguageDomain
in drupal/
core/
modules/
language/
lib/
Drupal/
language/
Tests/
LanguageUILanguageNegotiationTest.php
Tests
url
() when separate domains are used for multiple languages.
LanguageUILanguageNegotiationTest::testUILanguageNegotiation
in drupal/
core/
modules/
language/
lib/
Drupal/
language/
Tests/
LanguageUILanguageNegotiationTest.php
Tests for language switching by URL path.
language_disable
in drupal/
core/
modules/
language/
language.install
Implements
hook_disable
().
language_negotiation_configure_form_submit
in drupal/
core/
modules/
language/
language.admin.inc
Submit handler for language negotiation settings.
language_negotiation_set
in drupal/
core/
includes/
language.inc
Saves a list of language negotiation methods for a language type.
language_save
in drupal/
core/
modules/
language/
language.module
API function to add or update a language.
language_types_disable
in drupal/
core/
includes/
language.inc
Disables the given language types.
language_types_set
in drupal/
core/
includes/
language.inc
Updates the language type configuration.
language_update_count
in drupal/
core/
modules/
language/
language.module
Updates the language_count variable.
LocaleCompareTest::setTranslationsDirectory
in drupal/
core/
modules/
locale/
lib/
Drupal/
locale/
Tests/
LocaleCompareTest.php
Set the value of the default translations directory.
LocaleUninstallTest::testUninstallProcess
in drupal/
core/
modules/
locale/
lib/
Drupal/
locale/
Tests/
LocaleUninstallTest.php
Check if the values of the Locale variables are correct after uninstall.
locale_form_language_admin_edit_form_alter_submit
in drupal/
core/
modules/
locale/
locale.module
Form submission handler for
language_admin_edit_form
().
MailTest::setUp
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Mail/
MailTest.php
Sets up a Drupal site for running functional and integration tests.
menu_delete
in drupal/
core/
modules/
menu/
menu.module
Delete a custom menu and all contained links.
module_test_modules_disabled
in drupal/
core/
modules/
system/
tests/
modules/
module_test/
module_test.module
Implements
hook_modules_disabled
().
module_test_modules_uninstalled
in drupal/
core/
modules/
system/
tests/
modules/
module_test/
module_test.module
Implements
hook_modules_uninstalled
().
NameMungingTest::testMungeIgnoreInsecure
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
File/
NameMungingTest.php
If the allow_insecure_uploads variable evaluates to true, the file should come out untouched, no matter how evil the filename.
NameMungingTest::testMunging
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
File/
NameMungingTest.php
Create a file and munge/unmunge the name.
NewDefaultThemeBlocksTest::testNewDefaultThemeBlocks
in drupal/
core/
modules/
block/
lib/
Drupal/
block/
Tests/
NewDefaultThemeBlocksTest.php
Check the enabled Bartik blocks are correctly copied over.
NodeAccessLanguageTest::testNodeAccess
in drupal/
core/
modules/
node/
lib/
Drupal/
node/
Tests/
NodeAccessLanguageTest.php
Runs tests for node_access function with multiple languages.
NodeCreationTest::testUnpublishedNodeCreation
in drupal/
core/
modules/
node/
lib/
Drupal/
node/
Tests/
NodeCreationTest.php
Creates an unpublished node and confirms correct redirect behavior.
NodeEntityViewModeAlterTest::testNodeViewModeChange
in drupal/
core/
modules/
node/
lib/
Drupal/
node/
Tests/
NodeEntityViewModeAlterTest.php
Create a "Basic page" node and verify its consistency in the database.
node_block_save
in drupal/
core/
modules/
node/
node.module
Implements
hook_block_save
().
node_form_system_themes_admin_form_submit
in drupal/
core/
modules/
node/
node.module
Form submission handler for
system_themes_admin_form
().
node_type_form_submit
in drupal/
core/
modules/
node/
content_types.inc
Form submission handler for
node_type_form
().
PagePreviewTest::testPagePreviewWithRevisions
in drupal/
core/
modules/
node/
lib/
Drupal/
node/
Tests/
PagePreviewTest.php
Checks the node preview functionality, when using revisions.
PageTest::testBatchProgressPageTheme
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Batch/
PageTest.php
Tests that the batch API progress page uses the correct theme.
PathLanguageTest::testAliasTranslation
in drupal/
core/
modules/
path/
lib/
Drupal/
path/
Tests/
PathLanguageTest.php
Test alias functionality through the admin interfaces.
PoDatabaseWriter::setHeader
in drupal/
core/
modules/
locale/
lib/
Drupal/
locale/
PoDatabaseWriter.php
Implements
Drupal\Component\Gettext\PoMetadataInterface::setHeader
().
RemoteFileDirectoryTest::setUp
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
File/
RemoteFileDirectoryTest.php
Sets up a Drupal site for running functional and integration tests.
RemoteFileSaveUploadTest::setUp
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
RemoteFileSaveUploadTest.php
Sets up a Drupal site for running functional and integration tests.
RemoteFileScanDirectoryTest::setUp
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
File/
RemoteFileScanDirectoryTest.php
Sets up a Drupal site for running functional and integration tests.
RemoteFileUnmanagedCopyTest::setUp
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
File/
RemoteFileUnmanagedCopyTest.php
Sets up a Drupal site for running functional and integration tests.
RemoteFileUnmanagedDeleteRecursiveTest::setUp
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
File/
RemoteFileUnmanagedDeleteRecursiveTest.php
Sets up a Drupal site for running functional and integration tests.
RemoteFileUnmanagedDeleteTest::setUp
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
File/
RemoteFileUnmanagedDeleteTest.php
Sets up a Drupal site for running functional and integration tests.
RemoteFileUnmanagedMoveTest::setUp
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
File/
RemoteFileUnmanagedMoveTest.php
Sets up a Drupal site for running functional and integration tests.
RemoteFileUnmanagedSaveDataTest::setUp
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
File/
RemoteFileUnmanagedSaveDataTest.php
Sets up a Drupal site for running functional and integration tests.
RouterTest::setUp
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Menu/
RouterTest.php
Sets up a Drupal site for running functional and integration tests.
RouterTest::testMenuItemTitlesCases
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Menu/
RouterTest.php
Tests the possible ways to set the title for menu items. Also tests that menu item titles work with string overrides.
SaveUploadTest::testHandleDangerousFile
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
SaveUploadTest.php
Test dangerous file handling.
SaveUploadTest::testHandleFileMunge
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
SaveUploadTest.php
Test file munge handling.
SearchCommentTest::testSearchResultsComment
in drupal/
core/
modules/
search/
lib/
Drupal/
search/
Tests/
SearchCommentTest.php
Verify that comments are rendered using proper format in search results.
SearchCommentTest::testSearchResultsCommentAccess
in drupal/
core/
modules/
search/
lib/
Drupal/
search/
Tests/
SearchCommentTest.php
Verify access rules for comment indexing with different permissions.
SearchRankingTest::testDoubleRankings
in drupal/
core/
modules/
search/
lib/
Drupal/
search/
Tests/
SearchRankingTest.php
Verifies that if we combine two rankings, search still works.
SearchRankingTest::testHTMLRankings
in drupal/
core/
modules/
search/
lib/
Drupal/
search/
Tests/
SearchRankingTest.php
Test rankings of HTML tags.
SearchRankingTest::testRankings
in drupal/
core/
modules/
search/
lib/
Drupal/
search/
Tests/
SearchRankingTest.php
SessionHttpsTest::testHttpsSession
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Session/
SessionHttpsTest.php
SessionTest::testSessionWrite
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Session/
SessionTest.php
Test that sessions are only saved when necessary.
ShortcutLinksTest::testNoShortcutLink
in drupal/
core/
modules/
shortcut/
lib/
Drupal/
shortcut/
Tests/
ShortcutLinksTest.php
Tests that the add shortcut link is not displayed for 404/403 errors.
ShortcutLinksTest::testShortcutQuickLink
in drupal/
core/
modules/
shortcut/
lib/
Drupal/
shortcut/
Tests/
ShortcutLinksTest.php
Tests that the "add to shortcut" link changes to "remove shortcut".
standard_install
in drupal/
core/
profiles/
standard/
standard.install
Implements
hook_install
().
StreamWrapperTest::testUriFunctions
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
File/
StreamWrapperTest.php
Test the URI and target functions.
SystemAuthorizeTest::setUp
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
System/
SystemAuthorizeTest.php
Sets up a Drupal site for running functional and integration tests.
system_image_toolkit_settings
in drupal/
core/
modules/
system/
system.admin.inc
Form builder; Configure site image toolkit usage.
system_settings_form_submit
in drupal/
core/
modules/
system/
system.module
Execute the system_settings_form.
system_themes_admin_form_submit
in drupal/
core/
modules/
system/
system.admin.inc
Process system_themes_admin_form form submissions.
system_theme_default
in drupal/
core/
modules/
system/
system.admin.inc
Menu callback; Set the default theme.
system_theme_settings_submit
in drupal/
core/
modules/
system/
system.admin.inc
Process system_theme_settings form submissions.
ThemeTest::setUp
in drupal/
core/
modules/
taxonomy/
lib/
Drupal/
taxonomy/
Tests/
ThemeTest.php
Sets up a Drupal site for running functional and integration tests.
ThemeTest::testAdministrationTheme
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
System/
ThemeTest.php
Test the administration theme functionality.
ThemeTest::testTemplateOverride
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Theme/
ThemeTest.php
Ensures a themes template is overrideable based on the 'template' filename.
ThemeTestTwig::testTemplateOverride
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Theme/
ThemeTestTwig.php
Ensures a themes template is overrideable based on the 'template' filename.
TrackerTest::setUp
in drupal/
core/
modules/
tracker/
lib/
Drupal/
tracker/
Tests/
TrackerTest.php
Sets up a Drupal site for running functional and integration tests.
TrackerTest::testTrackerCronIndexing
in drupal/
core/
modules/
tracker/
lib/
Drupal/
tracker/
Tests/
TrackerTest.php
Tests that existing nodes are indexed by cron.
tracker_cron
in drupal/
core/
modules/
tracker/
tracker.module
Implements
hook_cron
().
tracker_enable
in drupal/
core/
modules/
tracker/
tracker.install
Implements
hook_enable
().
UpdateContribTest::testHookUpdateStatusAlter
in drupal/
core/
modules/
update/
lib/
Drupal/
update/
Tests/
UpdateContribTest.php
Checks that
hook_update_status_alter
() works to change a status.
UpdateUploadTest::setUp
in drupal/
core/
modules/
update/
lib/
Drupal/
update/
Tests/
UpdateUploadTest.php
Sets up a Drupal site for running functional and integration tests.
update_prepare_d8_bootstrap
in drupal/
core/
includes/
update.inc
Performs extra steps required to bootstrap when using a Drupal 7 database.
update_prepare_d8_language
in drupal/
core/
includes/
update.inc
Prepare Drupal 8 language changes for the bootstrap if needed.
update_prepare_stored_includes
in drupal/
core/
includes/
update.inc
Fix stored include paths to match the "/core" migration.
UserPictureTest::testPictureOnNodeComment
in drupal/
core/
modules/
user/
lib/
Drupal/
user/
Tests/
UserPictureTest.php
Tests embedded users on node pages.
VariableTest::testVariable
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Bootstrap/
VariableTest.php
Tests variables then deletes them.
WebTestBase::setUp
in drupal/
core/
modules/
simpletest/
lib/
Drupal/
simpletest/
WebTestBase.php
Sets up a Drupal site for running functional and integration tests.
_book_install_type_create
in drupal/
core/
modules/
book/
book.install
Creates the book content type.
_color_render_images
in drupal/
core/
modules/
color/
color.module
Renders images that match a given palette.
_drupal_flush_css_js
in drupal/
core/
includes/
common.inc
Changes the dummy query string added to all CSS and JavaScript files.
_locale_rebuild_js
in drupal/
core/
modules/
locale/
locale.module
(Re-)Creates the JavaScript translation file for a language.