Running Normal { "classes": { "Drupal": { "name": "Drupal", "description": "The main Drupal class.", "extends": [ ], "access": "", "virtual": false, "fires": "", "constructor": { "name": "Drupal", "description": "", "parameters": [ ] }, "functions": { "autocompleteSubmit": { "name": "autocompleteSubmit", "access": "", "virtual": false, "description": "Prevents the form from submitting if the suggestions popup is open\nand closes the suggestions popup when doing so.", "parameters": [ ] }, "attachBehaviors": { "name": "attachBehaviors", "access": "", "virtual": false, "description": "Attach all registered behaviors to a page element.\n\nBehaviors are event-triggered actions that attach to page elements, enhancing\ndefault non-JavaScript UIs. Behaviors are registered in the Drupal.behaviors\nobject using the method 'attach' and optionally also 'detach' as follows:", "parameters": [ { "name": "context", "type": "", "description": "An element to attach behaviors to. If none is given, the document element\n is used.", "default": "", "optional": "", "nullable": "" }, { "name": "settings", "type": "", "description": "An object containing settings for the current context. If none given, the\n global Drupal.settings object is used.", "default": "", "optional": "", "nullable": "" } ] }, "detachBehaviors": { "name": "detachBehaviors", "access": "", "virtual": false, "description": "Detach registered behaviors from a page element.\n\nDevelopers implementing AHAH/Ajax in their solutions should call this\nfunction before page content is about to be removed, feeding in an element\nto be processed, in order to allow special behaviors to detach from the\ncontent.\n\nSuch implementations should look for the class name that was added in their\ncorresponding Drupal.behaviors.behaviorName.attach implementation, i.e.\nbehaviorName-processed, to ensure the behavior is detached only from\npreviously processed elements.", "parameters": [ { "name": "context", "type": "", "description": "An element to detach behaviors from. If none is given, the document element\n is used.", "default": "", "optional": "", "nullable": "" }, { "name": "settings", "type": "", "description": "An object containing settings for the current context. If none given, the\n global Drupal.settings object is used.", "default": "", "optional": "", "nullable": "" }, { "name": "trigger", "type": "", "description": "A string containing what's causing the behaviors to be detached. The\n possible triggers are:\n - unload: (default) The context element is being removed from the DOM.\n - move: The element is about to be moved within the DOM (for example,\n during a tabledrag row swap). After the move is completed,\n Drupal.attachBehaviors() is called, so that the behavior can undo\n whatever it did in response to the move. Many behaviors won't need to\n do anything simply in response to the element being moved, but because\n IFRAME elements reload their \"src\" when being moved within the DOM,\n behaviors bound to IFRAME elements (like WYSIWYG editors) may need to\n take some action.\n - serialize: When an Ajax form is submitted, this is called with the\n form as the context. This provides every behavior within the form an\n opportunity to ensure that the field elements have correct content\n in them before the form is serialized. The canonical use-case is so\n that WYSIWYG editors can update the hidden textarea to which they are\n bound.", "default": "", "optional": "", "nullable": "" } ] }, "checkPlain": { "name": "checkPlain", "access": "", "virtual": false, "description": "Encode special characters in a plain-text string for display as HTML.", "parameters": [ ] }, "formatString": { "name": "formatString", "access": "", "virtual": false, "description": "Replace placeholders with sanitized values in a string.", "parameters": [ { "name": "str", "type": "", "description": "A string with placeholders.", "default": "", "optional": "", "nullable": "" }, { "name": "args", "type": "", "description": "An object of replacements pairs to make. Incidences of any key in this\n array are replaced with the corresponding value. Based on the first\n character of the key, the value is escaped and/or themed:\n - !variable: inserted as is\n - @variable: escape plain text to HTML (Drupal.checkPlain)\n - %variable: escape text and theme as a placeholder for user-submitted\n content (checkPlain + Drupal.theme('placeholder'))", "default": "", "optional": "", "nullable": "" } ] }, "t": { "name": "t", "access": "", "virtual": false, "description": "Translate strings to the page language or a given language.\n\nSee the documentation of the server-side t() function for further details.", "parameters": [ { "name": "str", "type": "", "description": "A string containing the English string to translate.", "default": "", "optional": "", "nullable": "" }, { "name": "args", "type": "", "description": "An object of replacements pairs to make after translation. Incidences\n of any key in this array are replaced with the corresponding value.\n See Drupal.formatString().", "default": "", "optional": "", "nullable": "" }, { "name": "options", "type": "", "description": "'context' (defaults to the empty context): The context the source string\n belongs to.", "default": "", "optional": "", "nullable": "" } ], "returns": { "type": "", "description": "" } }, "formatPlural": { "name": "formatPlural", "access": "", "virtual": false, "description": "Format a string containing a count of items.\n\nThis function ensures that the string is pluralized correctly. Since Drupal.t() is\ncalled by this function, make sure not to pass already-localized strings to it.\n\nSee the documentation of the server-side format_plural() function for further details.", "parameters": [ { "name": "count", "type": "", "description": "The item count to display.", "default": "", "optional": "", "nullable": "" }, { "name": "singular", "type": "", "description": "The string for the singular case. Please make sure it is clear this is\n singular, to ease translation (e.g. use \"1 new comment\" instead of \"1 new\").\n Do not use @count in the singular string.", "default": "", "optional": "", "nullable": "" }, { "name": "plural", "type": "", "description": "The string for the plural case. Please make sure it is clear this is plural,\n to ease translation. Use @count in place of the item count, as in \"@count\n new comments\".", "default": "", "optional": "", "nullable": "" }, { "name": "args", "type": "", "description": "An object of replacements pairs to make after translation. Incidences\n of any key in this array are replaced with the corresponding value.\n See Drupal.formatString().\n Note that you do not need to include @count in this array.\n This replacement is done automatically for the plural case.", "default": "", "optional": "", "nullable": "" }, { "name": "options", "type": "", "description": "The options to pass to the Drupal.t() function.", "default": "", "optional": "", "nullable": "" } ], "returns": { "type": "", "description": "" } }, "theme": { "name": "theme", "access": "", "virtual": false, "description": "Generate the themed representation of a Drupal object.\n\nAll requests for themed output must go through this function. It examines\nthe request and routes it to the appropriate theme function. If the current\ntheme does not provide an override function, the generic theme function is\ncalled.\n\nFor example, to retrieve the HTML for text that should be emphasized and\ndisplayed as a placeholder inside a sentence, call\nDrupal.theme('placeholder', text).", "parameters": [ { "name": "func", "type": "", "description": "The name of the theme function to call.", "default": "", "optional": "", "nullable": "" }, { "name": "...", "type": "", "description": "Additional arguments to pass along to the theme function.", "default": "", "optional": "", "nullable": "" } ], "returns": { "type": "", "description": "" } }, "freezeHeight": { "name": "freezeHeight", "access": "", "virtual": false, "description": "Freeze the current body height (as minimum height). Used to prevent\nunnecessary upwards scrolling when doing DOM manipulations.", "parameters": [ ] }, "unfreezeHeight": { "name": "unfreezeHeight", "access": "", "virtual": false, "description": "Unfreeze the body height.", "parameters": [ ] }, "encodePath": { "name": "encodePath", "access": "", "virtual": false, "description": "Encodes a Drupal path for use in a URL.\n\nFor aesthetic reasons slashes are not escaped.", "parameters": [ ] }, "getSelection": { "name": "getSelection", "access": "", "virtual": false, "description": "Get the text selection in a textarea.", "parameters": [ ] }, "ajaxError": { "name": "ajaxError", "access": "", "virtual": false, "description": "Build an error message from an Ajax response.", "parameters": [ ] } }, "classes": { "jsAC": { "name": "jsAC", "description": "", "extends": [ ], "access": "", "virtual": false, "fires": "", "constructor": { "name": "jsAC", "description": "An AutoComplete object.", "parameters": [ ] }, "functions": { "onkeydown": { "name": "onkeydown", "access": "", "virtual": false, "description": "Handler for the \"keydown\" event.", "parameters": [ ] }, "onkeyup": { "name": "onkeyup", "access": "", "virtual": false, "description": "Handler for the \"keyup\" event.", "parameters": [ ] }, "select": { "name": "select", "access": "", "virtual": false, "description": "Puts the currently highlighted suggestion into the autocomplete field.", "parameters": [ ] }, "selectDown": { "name": "selectDown", "access": "", "virtual": false, "description": "Highlights the next suggestion.", "parameters": [ ] }, "selectUp": { "name": "selectUp", "access": "", "virtual": false, "description": "Highlights the previous suggestion.", "parameters": [ ] }, "highlight": { "name": "highlight", "access": "", "virtual": false, "description": "Highlights a suggestion.", "parameters": [ ] }, "unhighlight": { "name": "unhighlight", "access": "", "virtual": false, "description": "Unhighlights a suggestion.", "parameters": [ ] }, "hidePopup": { "name": "hidePopup", "access": "", "virtual": false, "description": "Hides the autocomplete suggestions.", "parameters": [ ] }, "populatePopup": { "name": "populatePopup", "access": "", "virtual": false, "description": "Positions the suggestions popup and starts a search.", "parameters": [ ] }, "found": { "name": "found", "access": "", "virtual": false, "description": "Fills the suggestion popup with any matches received.", "parameters": [ ] }, "setStatus": { "name": "setStatus", "access": "", "virtual": false, "description": "Sets status.", "parameters": [ ] } } }, "ACDB": { "name": "ACDB", "description": "", "extends": [ ], "access": "", "virtual": false, "fires": "", "constructor": { "name": "ACDB", "description": "An AutoComplete DataBase object.", "parameters": [ ] }, "functions": { "search": { "name": "search", "access": "", "virtual": false, "description": "Performs a cached and delayed search.", "parameters": [ ] }, "cancel": { "name": "cancel", "access": "", "virtual": false, "description": "Cancels the current autocomplete request.", "parameters": [ ] } } }, "settings": { "name": "settings", "description": "Settings for Drupal.", "extends": [ ], "access": "", "virtual": false, "fires": "", "constructor": { "name": "settings", "description": "", "parameters": [ ] } }, "behaviors": { "name": "behaviors", "description": "Behaviors for Drupal.", "extends": [ ], "access": "", "virtual": false, "fires": "", "constructor": { "name": "behaviors", "description": "", "parameters": [ ] }, "classes": { "autocomplete": { "name": "autocomplete", "description": "", "extends": [ ], "access": "", "virtual": false, "fires": "", "constructor": { "name": "autocomplete", "description": "Attaches the autocomplete behavior to all required fields.", "parameters": [ ] }, "functions": { "attach": { "name": "attach", "access": "", "virtual": false, "description": "Attaches the behavior.", "parameters": [ ] } } } } }, "locale": { "name": "locale", "description": "Locale information for Drupal.", "extends": [ ], "access": "", "virtual": false, "fires": "", "constructor": { "name": "locale", "description": "", "parameters": [ ] } } } } } }