You are here

function _link_domains in Link 6.2

Same name and namespace in other branches
  1. 7 link.module \_link_domains()

Returns the list of allowed domains, including domains added by admins via variable_set/$config.

3 calls to _link_domains()
link_cleanup_url in ./link.inc
Forms a valid URL if possible from an entered address. Trims whitespace and automatically adds an http:// to addresses without a protocol specified
link_validate_url in ./link.inc
A lenient verification for URLs. Accepts all URLs following RFC 1738 standard for URL formation and all email addresses following the RFC 2368 standard for mailto address formation.
link_views_handler_filter_protocol::op_protocol in views/link_views_handler_filter_protocol.inc
Filter down the query to include only the selected protocols.

File

./link.module, line 506
Defines simple link field types.

Code

function _link_domains() {
  $link_extra_domains = variable_get('link_extra_domains', array());
  return empty($link_extra_domains) ? LINK_DOMAINS : LINK_DOMAINS . '|' . implode('|', $link_extra_domains);
}