Hi all,
I'm trying to remove the "email this page" links from the comments (I'd like to have them on nodes only). I've looked at "emailpage.module" and here is a function that adds links. I am not profecient in PHP enugh to do it myself. Could someone modify this function so it doesn't output "email this page" on every comment link?
Thanks!!!
Mel
function emailpage_link($type, $node=0, $main=0) {
$links=array();
// This var is set in the settings section under the admin/modules/emailpage section
// It shows 'email this $nodetype' or 'email this page'
$e_l_t=variable_get('emailpage_link_type', 0);
if($e_l_t) {
if($type == "comment") {
$e_l_t = "comment";
$links[] = l(t("email this ".$e_l_t), "emailpage&nid=$node->nid&cid=$node->cid", array("title" => t("Email this page to a friend"), 'class' => 'email-page' ), NULL);
return $links;
}
$e_l_t=$node->type;
} else $e_l_t="page";
if($main) { // not on an index page
if(variable_get('emailpage_show_on_main', 0)) {
$links[] = l(t("email this ".$e_l_t), "emailpage&nid=$node->nid", array("title" => t("Email this page to a friend"), 'class' => 'email-page' ), NULL);
return $links;
}
} else {
// not on a main page
$links[] = l(t("email this ".$e_l_t), "emailpage&nid=$node->nid", array("title" => t("Email this page to a friend"), 'class' => 'email-page'), NULL);