Active
Project:
Clickpath
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Jun 2011 at 07:05 UTC
Updated:
10 Apr 2012 at 07:18 UTC
As sometimes a page doesn't have a title, instead of displaying an empty line, I suggest to display path as a title:
function clickpath_block($op = 'list', $delta = 0) {
.
.
.
if(!$title || $title=='') {
$title = $path;
}
$list[] = l(_clickpath_truncate_title($title), $path, array('html' => TRUE));
}
$block['subject'] = t('Recently visited pages');
$block['content'] = theme('item_list', $list);
return $block;
}
}
}
Comments
Comment #1
chi commentedWhy don't exclude this pages form block?