function attachment_links_theme in Attachment Links 6
Same name and namespace in other branches
- 7 attachment_links.module \attachment_links_theme()
Implementation of hook_theme().
Parameters
$existing $existing An array of existing implementations that may be: used for override purposes.
$type $type What 'type' is being processed.:
$theme The actual name of theme that is being being checked.:
$path The directory path of the theme or module.:
Return value
A keyed array of theme hooks.
File
- ./
attachment_links.module, line 155 - The Attachment Links module provides permanent links to files attached to a node. A single, easy-to-remember URL can be used to retrieve the preferred (canonical) or newest version of a file regardless of how many versions of that file have been…
Code
function attachment_links_theme($existing, $type, $theme, $path) {
$hooks = array();
$hooks['attachment_links'] = array(
'template' => 'attachment-links',
'arguments' => array(
'node' => NULL,
'display_type' => 'node',
),
);
return $hooks;
}