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
»
common.inc
»
drupal_add_js
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
49 calls to drupal_add_js()
AjaxResponse::ajaxRender
in drupal/
core/
lib/
Drupal/
Core/
Ajax/
AjaxResponse.php
Prepares the AJAX commands for sending back to the client.
ajax_forms_test_lazy_load_form_submit
in drupal/
core/
modules/
system/
tests/
modules/
ajax_forms_test/
ajax_forms_test.module
Form submit handler: Adds JavaScript and CSS that wasn't on the original form.
ajax_render
in drupal/
core/
includes/
ajax.inc
Renders a commands array into JSON.
ajax_test_render
in drupal/
core/
modules/
system/
tests/
modules/
ajax_test/
ajax_test.module
Page callback: Returns an element suitable for use by
ajax_render
().
CacheTest::testHeaderStorage
in drupal/
core/
modules/
views/
lib/
Drupal/
views/
Tests/
Plugin/
CacheTest.php
Tests css/js storage and restoring mechanism.
color.inc
in drupal/
core/
themes/
bartik/
color/
color.inc
Lists avalable colors and color schemes for the Bartik theme.
common_test_js_and_css_querystring
in drupal/
core/
modules/
system/
tests/
modules/
common_test/
common_test.module
Adds a JavaScript file and a CSS file with a query string appended.
drupal_add_tabledrag
in drupal/
core/
includes/
common.inc
Assists in adding the tableDrag JavaScript behavior to a themed table.
drupal_get_js
in drupal/
core/
includes/
common.inc
Returns a themed presentation of all JavaScript code for the current page.
file_ajax_upload
in drupal/
core/
modules/
file/
file.module
Ajax callback: Processes file uploads and deletions.
hook_overlay_child_initialize
in drupal/
core/
modules/
overlay/
overlay.api.php
Allow modules to act when an overlay child window is initialized.
hook_overlay_parent_initialize
in drupal/
core/
modules/
overlay/
overlay.api.php
Allow modules to act when an overlay parent window is initialized.
install_configure_form
in drupal/
core/
includes/
install.core.inc
Form constructor for a form to configure the new site.
JavaScriptTest::testAddExternal
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Common/
JavaScriptTest.php
Tests adding an external JavaScript File.
JavaScriptTest::testAddFile
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Common/
JavaScriptTest.php
Tests adding a JavaScript file.
JavaScriptTest::testAddInline
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Common/
JavaScriptTest.php
Tests adding inline scripts.
JavaScriptTest::testAddSetting
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Common/
JavaScriptTest.php
Tests adding settings.
JavaScriptTest::testAggregatedAttributes
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Common/
JavaScriptTest.php
Tests that attributes are maintained when JS aggregation is enabled.
JavaScriptTest::testAggregation
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Common/
JavaScriptTest.php
Tests JavaScript grouping and aggregation.
JavaScriptTest::testAggregationOrder
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Common/
JavaScriptTest.php
Tests JavaScript aggregation when files are added to a different scope.
JavaScriptTest::testAlter
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Common/
JavaScriptTest.php
Tests altering a JavaScript's weight via
hook_js_alter
().
JavaScriptTest::testAttributes
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Common/
JavaScriptTest.php
Tests adding JavaScript files with additional attributes.
JavaScriptTest::testBrowserConditionalComments
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Common/
JavaScriptTest.php
Tests adding JavaScript within conditional comments.
JavaScriptTest::testDefault
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Common/
JavaScriptTest.php
Tests that default JavaScript is empty.
JavaScriptTest::testDifferentGroup
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Common/
JavaScriptTest.php
Tests adding a JavaScript file with a different group.
JavaScriptTest::testDifferentWeight
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Common/
JavaScriptTest.php
Tests adding a JavaScript file with a different weight.
JavaScriptTest::testFooterHTML
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Common/
JavaScriptTest.php
Tests
drupal_get_js
() with a footer scope.
JavaScriptTest::testHeaderSetting
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Common/
JavaScriptTest.php
Tests
drupal_get_js
() for JavaScript settings.
JavaScriptTest::testNoCache
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Common/
JavaScriptTest.php
Tests
drupal_add_js
() sets preproccess to FALSE when cache is also FALSE.
JavaScriptTest::testRenderDifferentWeight
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Common/
JavaScriptTest.php
Tests rendering the JavaScript with a file's weight above jQuery's.
JavaScriptTest::testRenderExternal
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Common/
JavaScriptTest.php
Tests rendering an external JavaScript file.
JavaScriptTest::testRenderOrder
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Common/
JavaScriptTest.php
Tests JavaScript ordering.
JavaScriptTest::testReset
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Common/
JavaScriptTest.php
Tests to see if resetting the JavaScript empties the cache.
JavaScriptTest::testVersionQueryString
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Common/
JavaScriptTest.php
Tests JavaScript versioning.
menu_form_node_type_form_alter
in drupal/
core/
modules/
menu/
menu.module
Implements
hook_form_FORM_ID_alter
().
overlay_close_dialog
in drupal/
core/
modules/
overlay/
overlay.module
Requests that the overlay overlay closes when the page is displayed.
overlay_overlay_parent_initialize
in drupal/
core/
modules/
overlay/
overlay.module
Implements
hook_overlay_parent_initialize
().
overlay_render_region
in drupal/
core/
modules/
overlay/
overlay.module
Renders an individual page region.
overlay_trigger_refresh
in drupal/
core/
modules/
overlay/
overlay.module
Checks if the parent window needs to be refreshed on this page load.
system_add_module_assets
in drupal/
core/
modules/
system/
system.module
Adds CSS and JavaScript files declared in module .info files.
TableTest::testThemeTableNoStickyHeaders
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Theme/
TableTest.php
If $sticky is FALSE, no tableheader.js should be included.
TableTest::testThemeTableStickyHeaders
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Theme/
TableTest.php
Tableheader.js provides 'sticky' table headers, and is included by default.
theme_color_scheme_form
in drupal/
core/
modules/
color/
color.module
Returns HTML for a theme's color form.
theme_simpletest_test_table
in drupal/
core/
modules/
simpletest/
simpletest.pages.inc
Returns HTML for a test list generated by
simpletest_test_form
() into a table.
theme_taxonomy_overview_terms
in drupal/
core/
modules/
taxonomy/
taxonomy.admin.inc
Returns HTML for a terms overview form as a sortable list of terms.
views_preprocess_html
in drupal/
core/
modules/
views/
views.module
Implements MODULE_preprocess_HOOK().
views_ui_ajax_form
in drupal/
core/
modules/
views/
views_ui/
admin.inc
Generic entry point to handle forms.
_batch_progress_page
in drupal/
core/
includes/
batch.inc
Outputs a batch processing page.
_drupal_theme_initialize
in drupal/
core/
includes/
theme.inc
Initialize the theme system given already loaded information. This function is useful to initialize a theme when no database is present.