Posted by moshe weitzman on May 6, 2006 at 4:08am
| Project: | Help Tip |
| Version: | master |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
the culprit was a non array being passed through theme('links') but I did not trace it all the way. definately a helptip issue for anon users. i can enable this on groupsbeta site for whomever wants to see.
Comments
#1
patch attached. note that you might be able to avoid this function altogether is you call node_view() with a param that suppresses links like Preview does. Also, there is a $node->readmore property so you don't have to do this comparison (which is expensive for big nodes):
if ($node->body != $node->teaser) {
$links[] = l(t('read more'), "node/$node->nid", array('title' => t('Read the rest of this help tip.'), 'class' => 'read-more'));
}
#2
this is still an error in 4.7 i think. head has changed theme_links a bit