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 |
|
Provides either a displayable (read-only) listing, in endnotes format, or an editable form, showing all of the embedded links in the node body. |
|
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. |
|
This function simply displays the embedded links in endnotes-style, without providing a form for editing. |
|
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. |
|
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.) |
|
Retrieve the list of links to display with the node in the teaser, page, endnotes, or block. |
|
Prepares a view of the links depending on the node viewing mode and the links_related module settings. |
|
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. |
|
Works like _links_related_sort_links(), except operates on $_POST['edit']['links_related'] intrinsically, rather than accepting a node as a parameter. |
|
Displays the standalone "links" tab for a node |
|
Displays a page to allow management of the embedded links. |
|
|
|
Implementation of hook_block() |
|
|
|
Builds one one line of the data entry form for links |
|
|
|
Implementation of hook_link(). |
|
Implementation of hook_nodeapi() |
|
Implementation of hook_settings() |
|
This function wraps the embedded links form fields in a table for display. |
|
This function wraps the related links form fields in a table for display. |
|
|
|
|