Closed (fixed)
Project:
Node Images
Version:
5.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Sep 2007 at 00:38 UTC
Updated:
15 Jan 2008 at 01:42 UTC
I would like to get rid of the two links: "Edit Images" and "View the Image Gallery" that appears in the node type, usernode, for which I allow uploads.
I have looked through the module and read up a little bit about the drupal hook_link function.
Could I just delete all of this:
/**
* Implementation of hook_link().
*/
function node_images_link($type, $node = null, $teaser = false) {
$links = array();
if ($type == 'node' && $node->nid && variable_get('node_images_position_'.$node->type, 'hide') != 'hide') {
if (node_access('update', $node) && user_access('create node images')) {
$links['node_images_edit'] = array(
'title' => t('Edit images'),
'href' => "node/$node->nid/images",
);
}
if (count($node->node_images) && variable_get('node_images_gallery_link_'.$node->type, TRUE)) {
$links['node_images_gallery'] = array(
'title' => t('Open the image gallery'),
'href' => "node/$node->nid/image_gallery",
);
}
}
return $links;
}
would this affect the working of the module?
Thanks in advance for your assistance.
Comments
Comment #1
stefano73 commentedEach link has a specific CSS class, so you can just set that class to display:none and the link will disappear. For example, if you want to hide the above links just add the following classes to your theme's style.css:
Comment #2
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.