Closed (fixed)
Project:
XSPF Playlist
Version:
5.x-1.20-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2009 at 01:30 UTC
Updated:
10 Mar 2009 at 13:40 UTC
With XSPF module enabled, I get two blank links in my navigation menu for "node/nid/xspf". Is there something to blame in this function below?
/**
* Implementation of hook_menu().
*/
function xspf_playlist_node_menu($may_cache) {
$items = array();
if ($may_cache) {
// this is the legacy path
$items[] = array(
'path' => 'xspf/node',
'callback' => 'xspf_playlist_node_view',
'access' => user_access('access content'),
);
}
// new node-centric path
$items[] = array(
'path' => 'node/'. arg(1) .'/xspf',
'callback' => 'xspf_playlist_node_view',
'callback arguments' => array(arg(1)),
'access' => user_access('access content'),
);
return $items;
}
Comments
Comment #1
arthurf commentedThanks for the catch, fix is now in svn