Main Page | Modules | File List | File Members

links_related.module File Reference


Functions

 if ($node->nid)
function links_related_help ($section="")
function links_related_link ($type='', $node=NULL, $teaser=FALSE)
function _links_related_list (&$node, $page=FALSE, $teaser=FALSE)
function links_related_settings ()
function links_related_nodeapi (&$node, $op, $teaser=NULL, $page=NULL)
function links_related_form_alter ($form_id, &$form)
function theme_links_related_form (&$form)
function theme_links_related_embedded_form (&$form)
function links_related_block ($op= 'list', $delta=0, $edit=array())
function links_related_form_line ($link=NULL)
function _links_related_linkcompare ($link1, $link2)
function _links_related_sort_links (&$links)
function _links_related_sort_post_links ()
function _links_related_prep_view (&$node, $teaser=FALSE, $page=FALSE)
function _links_related_format_list ($list, $heading='')
function _links_related_tab ()
function _links_related_tab_edit ()
function _links_related_embedded ($node=NULL, $editable=FALSE)
function _links_related_format_embedded_list ($links)
function _links_related_format_embedded_edit ($links)

Variables

<?phpfunctionlinks_related_menu($may_cache=FALSE){$items=array();if(!$may_cache){if(variable_get('links_related_enable_tab',
FALSE)&&arg(0)=='node'&&is_numeric(arg(1))){$node=node_load(array('nid'= 
arg )(1)))
return $items

Function Documentation

function _links_related_embedded node = NULL,
editable = FALSE
 

Provides either a displayable (read-only) listing, in endnotes format, or an editable form, showing all of the embedded links in the node body.

function _links_related_format_embedded_edit links  ) 
 

Given an array of links as returned from links_find_links(), this function returns an HTML fragment with an editable form to manage those links.

function _links_related_format_embedded_list links  ) 
 

This function simply displays the embedded links in endnotes-style, without providing a form for editing.

function _links_related_format_list list,
heading = ''
 

Accepts a list of predefined HTML links (as returned from l() typically) and returns the list HTML around them plus an optional level-2 heading at the top of the list. The entire thing is surrounded by a DIV tag with a class of "links_related_endnotes" to make it more themeable.

function _links_related_linkcompare link1,
link2
 

Compares two subarrays from $node->links_related and returns an integer -1, 0, or 1 based on that comparison. (See PHP function uasort() for details.)

function _links_related_list &$  node,
page = FALSE,
teaser = FALSE
 

Retrieve the list of links to display with the node in the teaser, page, endnotes, or block.

function _links_related_prep_view &$  node,
teaser = FALSE,
page = FALSE
 

Prepares a view of the links depending on the node viewing mode and the links_related module settings.

function _links_related_sort_links &$  links  ) 
 

Sorts the links by weight, keeping their existing order otherwise. Also removes any empty links and those with the "delete" flag set. $links is an integer-subscripted array of links.

function _links_related_sort_post_links  ) 
 

Works like _links_related_sort_links(), except operates on $_POST['edit']['links_related'] intrinsically, rather than accepting a node as a parameter.

function _links_related_tab  ) 
 

Displays the standalone "links" tab for a node

function _links_related_tab_edit  ) 
 

Displays a page to allow management of the embedded links.

if $node->  nid  ) 
 

function links_related_block op = 'list',
delta = 0,
edit = array()
 

Implementation of hook_block()

function links_related_form_alter form_id,
&$  form
 

function links_related_form_line link = NULL  ) 
 

Builds one one line of the data entry form for links

function links_related_help section = ""  ) 
 

function links_related_link type = '',
node = NULL,
teaser = FALSE
 

Implementation of hook_link().

function links_related_nodeapi &$  node,
op,
teaser = NULL,
page = NULL
 

Implementation of hook_nodeapi()

function links_related_settings  ) 
 

Implementation of hook_settings()

function theme_links_related_embedded_form &$  form  ) 
 

This function wraps the embedded links form fields in a table for display.

function theme_links_related_form &$  form  ) 
 

This function wraps the related links form fields in a table for display.


Variable Documentation

return $items
 

<?phpfunctionlinks_related_menu($may_cache=FALSE){$items=array();if(!$may_cache){if(variable_get('links_related_enable_tab',FALSE)&&arg(0)=='node'&&is_numeric(arg(1))){$node=node_load(array('nid'= arg)(1)))
 


Generated on Tue Aug 1 10:19:37 2006 for Drupal Links Package by  doxygen 1.4.4