<span style="font-family: verdana,sans-serif;">Hi,</span><br style="font-family: verdana,sans-serif;"><br style="font-family: verdana,sans-serif;"><span style="font-family: verdana,sans-serif;">If I understand your issue correctly maybe "wrapping" your code with this would do the trick?<br>
</span><pre style="font-family: verdana,sans-serif;" class="php"><code><font size="2"><span class="php-keyword"><br></span></font><font style="font-family: verdana,sans-serif;" size="2">foreach(<span class="php-variable">$links</span> <span class="php-keyword">as</span> <span class="php-variable">$module</span> => <span class="php-variable">$link</span>) {<br>
<span class="php-keyword">if</span> (<span class="php-function-or-constant">strstr</span>(<span class="php-variable">$module</span>, <span class="php-string">'notifications'</span>)) {<br> //your stuff here<span class="php-comment"></span><br>
}<br> }</font><br></code></pre><span style="font-family: verdana,sans-serif;">Best regards,</span><br style="font-family: verdana,sans-serif;"><br style="font-family: verdana,sans-serif;"><span style="font-family: verdana,sans-serif;">Jørn Fauske</span><br>
<br><div class="gmail_quote">On Mon, Feb 8, 2010 at 11:33 PM, Salvatore De Paolis <span dir="ltr"><<a href="mailto:iwkse@gmx.com">iwkse@gmx.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
i'd like to theme the links created by the notifications module, like subscribe<br>
to content, type, author, ecc.<br>
For doing that i'm try to hook the link_alter and overwrite the link in the way:<br>
<br>
global $user;<br>
$options = notifications_ui_subscribe_options($user, 'node', $user);<br>
$i = 0;<br>
foreach ($options as $index => $option) {<br>
$notify = 'notifications_' . $i;<br>
if ($option['type'] == 'thread') {<br>
$links[$notify]['title'] = "New title";<br>
$links[$notify]['attributes']['title'] = "New attribute title";<br>
}<br>
if ($option['type'] == 'nodetype') {<br>
$links[$notify]['title'] = "New title";<br>
$links[$notify]['attributes']['title'] = "New attribute title";<br>
}<br>
...<br>
$i++;<br>
}<br>
<br>
I have two issues with this code. First, the notifications_ class is also used<br>
with the taxonomy module, and this means when i do this change the Tags is<br>
affected too.<br>
Second, $option['type'] == 'nodetype' would match all types (profile, group,<br>
ecc) and I can't really switch from that.<br>
<br>
Anyone know a better way or some more info to make this code to work?<br>
<br>
Thanks in advance<br>
Sal<br>
</blockquote></div><br>