_locale_invalidate_js

_locale_invalidate_js($langcode = NULL) Force the JavaScript translation file(s) to be refreshed. This function sets a refresh flag for a specified language, or all languages except English, if none specified. JavaScript translation files are rebuilt (with locale_update_js_files()) the next time a request is served in that language. Parameters $langcode: The language code for which the file needs to be refreshed. Return value New content of the 'system.javascript_parsed' variable. File core/m

_filter_url

_filter_url($text, $filter) Converts text into hyperlinks automatically. This filter identifies and makes clickable three types of "links". URLs like http://example.com. Email addresses like name@example.com. Web addresses without the "http://" protocol defined, like www.example.com. Each type must be processed separately, as there is no one regular expression that could possibly match all of the cases in one pass. Related topics Standard filters Filters implemented by the Filter module. Fi

_filter_html_image_secure_process

_filter_html_image_secure_process($text) Process callback for local image filter. Related topics Standard filters Filters implemented by the Filter module. File core/modules/filter/filter.module, line 765 Framework for handling the filtering of content. Code function _filter_html_image_secure_process($text) { // Find the path (e.g. '/') to Drupal root. $base_path = base_path(); $base_path_length = Unicode::strlen($base_path); // Find the directory on the server where index.php resi

_filter_url_parse_email_links

_filter_url_parse_email_links($match) Makes links out of email addresses. Callback for preg_replace_callback() within _filter_url(). Related topics Standard filters Filters implemented by the Filter module. File core/modules/filter/filter.module, line 607 Framework for handling the filtering of content. Code function _filter_url_parse_email_links($match) { // The $i:th parenthesis in the regexp contains the URL. $i = 0; $match[$i] = Html::decodeEntities($match[$i]); $caption = Html

_filter_url_escape_comments

_filter_url_escape_comments($match, $escape = NULL) Escapes the contents of HTML comments. Callback for preg_replace_callback() within _filter_url(). Parameters array $match: An array containing matches to replace from preg_replace_callback(), whereas $match[1] is expected to contain the content to be filtered. bool|null $escape: (optional) A Boolean indicating whether to escape (TRUE) or unescape comments (FALSE). Defaults to NULL, indicating neither. If TRUE, statically cached $comments are

_filter_tips

_filter_tips($format_id, $long = FALSE) Retrieves the filter tips. Parameters string $format_id: The ID of the text format for which to retrieve tips, or -1 to return tips for all formats accessible to the current user. bool $long: (optional) Boolean indicating whether the long form of tips should be returned. Defaults to FALSE. Return value array An associative array of filtering tips, keyed by filter name. Each filtering tip is an associative array with elements: tip: Tip text. id: Filter

_filter_url_parse_full_links

_filter_url_parse_full_links($match) Makes links out of absolute URLs. Callback for preg_replace_callback() within _filter_url(). Related topics Standard filters Filters implemented by the Filter module. File core/modules/filter/filter.module, line 592 Framework for handling the filtering of content. Code function _filter_url_parse_full_links($match) { // The $i:th parenthesis in the regexp contains the URL. $i = 1; $match[$i] = Html::decodeEntities($match[$i]); $caption = Html::es

_editor_parse_file_uuids

_editor_parse_file_uuids($text) Parse an HTML snippet for any linked file with data-entity-uuid attributes. Parameters string $text: The partial (X)HTML snippet to load. Invalid markup will be corrected on import. Return value array An array of all found UUIDs. File core/modules/editor/editor.module, line 600 Adds bindings for client-side "text editors" to text formats. Code function _editor_parse_file_uuids($text) { $dom = Html::load($text); $xpath = new \DOMXPath($dom); $uuids = arr

_field_multiple_value_form_sort_helper

_field_multiple_value_form_sort_helper($a, $b) Callback for usort() within template_preprocess_field_multiple_value_form(). Sorts using ['_weight']['#value'] File core/includes/theme.inc, line 1706 The theme system, which controls the output of Drupal. Code function _field_multiple_value_form_sort_helper($a, $b) { $a_weight = (is_array($a) && isset($a['_weight']['#value']) ? $a['_weight']['#value'] : 0); $b_weight = (is_array($b) && isset($b['_weight']['#value']) ? $b['_we

_filter_html_escape

_filter_html_escape($text) Escapes all HTML tags, so they will be visible instead of being effective. Related topics Standard filters Filters implemented by the Filter module. File core/modules/filter/filter.module, line 758 Framework for handling the filtering of content. Code function _filter_html_escape($text) { return trim(Html::escape($text)); }