Search for js

  1. Search 9.5.x for js
  2. Search 8.9.x for js
  3. Search 10.3.x for js
  4. Search 11.x for js
  5. Other projects
Title Object type File name Summary
book_pick_book_nojs_submit function modules/book/book.module Form submission handler for node_form().
common_test_js_and_css_querystring function modules/simpletest/tests/common_test.module Adds a JavaScript file and a CSS file with a query string appended.
DrupalJSONTest class modules/simpletest/tests/common.test Tests converting PHP variables to JSON strings and back.
DrupalJSONTest::getInfo function modules/simpletest/tests/common.test
DrupalJSONTest::testJSON function modules/simpletest/tests/common.test Tests converting PHP variables to JSON strings and back.
drupal_add_js function includes/common.inc Adds a JavaScript file, setting, or inline code to the page.
drupal_build_js_cache function includes/common.inc Aggregates JavaScript files into a cache file in the files directory.
drupal_clear_js_cache function includes/common.inc Deletes old cached JavaScript files and variables.
drupal_get_js function includes/common.inc Returns a themed presentation of all JavaScript code for the current page.
drupal_json_decode function includes/common.inc Converts an HTML-safe JSON string into its PHP equivalent.
drupal_json_encode function includes/common.inc Converts a PHP variable into its JavaScript equivalent.
drupal_json_encode_helper function includes/json-encode.inc Encodes a PHP variable to HTML-safe JSON for PHP versions below 5.3.0.
drupal_json_output function includes/common.inc Returns data in JSON format.
drupal_js_defaults function includes/common.inc Constructs an array of the defaults that are used for JavaScript items.
drupal_sort_css_js function includes/common.inc Sorts CSS and JavaScript resources.
FieldFormTestCase::testFieldFormJSAddMore function modules/field/tests/field.test
field_add_more_js function modules/field/field.form.inc Ajax callback in response to a new empty widget being added to the form.
field_ui_display_overview_multistep_js function modules/field_ui/field_ui.admin.inc Ajax handler for multistep buttons on the 'Manage display' screen.
hook_js_alter function modules/system/system.api.php Perform necessary alterations to the JavaScript before it is presented on
the page.
JavaScriptTestCase::$preprocess_js property modules/simpletest/tests/common.test Store configured value for JavaScript preprocessing.
JavaScriptTestCase::testAddJsFileWithQueryString function modules/simpletest/tests/common.test Tests that the query string remains intact when adding JavaScript files
that have query string parameters.
JavaScriptTestCase::testSetHasJsCookie function modules/simpletest/tests/common.test Tests that the set_has_js_cookie variable is reflected in Drupal.settings.
json-encode.inc file includes/json-encode.inc Provides a helper to properly encode HTML-safe JSON prior to PHP 5.3.0.
JS_DEFAULT constant includes/common.inc The default group for module JavaScript code added to the page.
JS_LIBRARY constant includes/common.inc The default group for JavaScript and jQuery libraries added to the page.
JS_THEME constant includes/common.inc The default group for theme JavaScript code added to the page.
locale_js_alter function modules/locale/locale.module Implements hook_js_alter().
LOCALE_JS_OBJECT constant includes/locale.inc Regular expression pattern used to match simple JS object literal.
LOCALE_JS_OBJECT_CONTEXT constant includes/locale.inc Regular expression to match an object containing a key 'context'.
LOCALE_JS_STRING constant includes/locale.inc Regular expression pattern used to localize JavaScript strings.
MenuTestCase::testMenuParentsJsAccess function modules/menu/menu.test Test administrative users other than user 1 can access the menu parents AJAX callback.
menu_parent_options_js function modules/menu/menu.module Page callback.
Get all the available menus and menu items as a JavaScript array.
PollJSAddChoice class modules/poll/poll.test Test adding new choices.
PollJSAddChoice::getInfo function modules/poll/poll.test
PollJSAddChoice::setUp function modules/poll/poll.test Sets up a Drupal site for running functional and integration tests.
PollJSAddChoice::testAddChoice function modules/poll/poll.test Test adding a new choice.
poll_choice_js function modules/poll/poll.module Ajax callback in response to new choices being added to the form.
simpletest_js_alter function modules/simpletest/simpletest.module Implements hook_js_alter().
_drupal_flush_css_js function includes/common.inc Changes the dummy query string added to all CSS and JavaScript files.
_form_test_submit_values_json function modules/simpletest/tests/form_test.module Form submit handler to return form values as JSON.
_form_test_tableselect_js_select_form function modules/simpletest/tests/form_test.module Test functionality of the tableselect #js_select property.
_locale_invalidate_js function includes/locale.inc Force the JavaScript translation file(s) to be refreshed.
_locale_parse_js_file function includes/locale.inc Parses a JavaScript file, extracts strings wrapped in Drupal.t() and
Drupal.formatPlural() and inserts them into the database.
_locale_rebuild_js function includes/locale.inc (Re-)Creates the JavaScript translation file for a language.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.