Roundcube Community Forum

 

Adding text to existing compose.html

Started by nlreeftank, December 04, 2012, 01:53:18 PM

Previous topic - Next topic

nlreeftank

Hi all,

Im trying to add text to the existing compose.html

i added this to compose.html

<tr>
<td class="title"><label for="_from">Ontvangen:</label></td>
<td class="editfield">
<roundcube:label name="aantal_ontvangen" />
</td>
</tr>
    <tr>
<td class="title"><label for="_from"><roundcube:label name="from" /></label></td>
<td class="editfield">
<roundcube:object name="composeHeaders" part="from" form="form" id="_from" tabindex="1" />
<a href="#identities" onClick="return rcmail.command('identities')" class="iconlink edit"><roundcube:label name="editidents" /></a>
</td>
</tr>


in my plugin i init with

$this->register_handler('aantal_ontvangen', array($this, 'my_function'));

that calls

function my_function()
{
  $content = "dit werkt";
  return($content);
}


but this aint filling in the text.
what do i do wrong here?


nlreeftank

I wish the support was beter around here, takes ages to get an answere on posts