[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/link/ -> link.module (summary)

(no description)

File Size: 902 lines (33 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 31 functions

  link_field_info()
  link_field_settings()
  theme_link_field_settings()
  link_content_is_empty()
  link_field()
  link_widget_info()
  link_widget()
  _link_load()
  _link_process()
  _link_validate()
  _link_sanitize()
  link_theme()
  theme_link()
  link_elements()
  _link_default_attributes()
  link_process()
  link_field_formatter_info()
  theme_link_formatter_default()
  theme_link_formatter_plain()
  theme_link_formatter_title_plain()
  theme_link_formatter_url()
  theme_link_formatter_short()
  theme_link_formatter_label()
  theme_link_formatter_separate()
  link_token_list()
  link_token_values()
  link_views_api()
  link_cleanup_url()
  _link_html_entity_decode()
  _link_code2utf()
  link_validate_url()

Functions
Functions that are not part of a class:

link_field_info()   X-Ref
Implementation of hook_field_info().


link_field_settings($op, $field)   X-Ref
Implementation of hook_field_settings().


theme_link_field_settings($form)   X-Ref
Theme the settings form for the link field.


link_content_is_empty($item, $field)   X-Ref
Implementation of hook_content_is_empty().


link_field($op, &$node, $field, &$items, $teaser, $page)   X-Ref
Implementation of hook_field().


link_widget_info()   X-Ref
Implementation of hook_widget_info().


link_widget(&$form, &$form_state, $field, $items, $delta = 0)   X-Ref
Implementation of hook_widget().


_link_load($field, &$items)   X-Ref
No description

_link_process(&$item, $delta = 0, $field, $node)   X-Ref
No description

_link_validate(&$item, $delta, $field, $node, &$optional_field_found)   X-Ref
No description

_link_sanitize(&$item, $delta, &$field, &$node)   X-Ref
Cleanup user-entered values for a link field according to field settings.

param: $item
param: $delta
param: $field
param: $node

link_theme()   X-Ref
Implementation of hook_theme().


theme_link($element)   X-Ref
FAPI theme for an individual text elements.


link_elements()   X-Ref
Implementation of hook_elements().


_link_default_attributes()   X-Ref
No description

link_process($element, $edit, $form_state, $form)   X-Ref
Process the link type element before displaying the field.

Build the form element. When creating a form using FAPI #process,
note that $element['#value'] is already set.

The $fields array is in $form['#field_info'][$element['#field_name']].

link_field_formatter_info()   X-Ref
Implementation of hook_field_formatter_info().


theme_link_formatter_default($element)   X-Ref
Theme function for 'default' text field formatter.


theme_link_formatter_plain($element)   X-Ref
Theme function for 'plain' text field formatter.


theme_link_formatter_title_plain($element)   X-Ref
Theme function for 'title_plain' text field formatter.


theme_link_formatter_url($element)   X-Ref
Theme function for 'url' text field formatter.


theme_link_formatter_short($element)   X-Ref
Theme function for 'short' text field formatter.


theme_link_formatter_label($element)   X-Ref
Theme function for 'label' text field formatter.


theme_link_formatter_separate($element)   X-Ref
Theme function for 'separate' text field formatter.


link_token_list($type = 'all')   X-Ref
No description

link_token_values($type, $object = NULL)   X-Ref
No description

link_views_api()   X-Ref
Implementation of hook_views_api().


link_cleanup_url($url, $protocol = "http")   X-Ref
Forms a valid URL if possible from an entered address.
Trims whitespace and automatically adds an http:// to addresses without a protocol specified

param: string $url
param: string $protocol The protocol to be prepended to the url if one is not specified

_link_html_entity_decode($html_string, $quote_style = ENT_COMPAT, $charset)   X-Ref
Wrapper around html_entity_decode to handle problems with PHP 4.

See http://drupal.org/node/739650
See http://bugs.php.net/bug.php?id=25670

We've taken this away from the beginning of file define() step, as this is
going to be slower for PHP4, and we don't want to run this on every page load,
just when we're doing a validate.

_link_code2utf($num)   X-Ref
Returns the utf string corresponding to the unicode value.

Needed for handling utf characters in PHP4.


link_validate_url($text)   X-Ref
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.

param: string $text
return: mixed Returns boolean FALSE if the URL is not valid. On success, returns an object with



Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7