You are here

function addtoany_create_node_buttons in AddToAny Share Buttons 7.4

Generate code for AddToAny buttons for a node.

Parameters

object $node: The node object to create the buttons for.

Return value

string The HTML code for the buttons.

4 calls to addtoany_create_node_buttons()
addtoany_block_view in ./addtoany.module
Implements hook_block_view().
addtoany_ds_buttons_field in ./addtoany.module
Returns the addtoany buttons field.
addtoany_handler_field_addtoany_link::render in views/addtoany_handler_field_addtoany_link.inc
Render the field.
addtoany_node_view in ./addtoany.module
Implements hook_node_view().

File

./addtoany.module, line 282
Stand alone module file to handle AddToAny buttons integration

Code

function addtoany_create_node_buttons($node) {
  $url = isset($node) ? 'node/' . $node->nid : NULL;
  $title = isset($node) ? $node->title : NULL;
  return addtoany_create_buttons($url, $title);
}