Closed (fixed)
Project:
ecard
Version:
6.x-1.6
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Sep 2009 at 21:09 UTC
Updated:
26 Nov 2009 at 16:50 UTC
Hi there!
Love this module- I use it in conjunction with the Flash node to make cool cards!. Almost exactly what I am looking for .. Save for the adding of the recipient name on the viewing of the card. I made attempts to add the field I needed but I am running to problems with the php functions.. Coder in php I am NOT! :) I was hoping that maybe you could help point me in the right direction with my code...
Everything is pretty much the same except I add a rec_name to the table and would like to add this to the view ecard.
function ecard2_theme() {
return array(
'ecard_message' => array(
'arguments' => array('message', 'rec_name'),
),
);
}
function theme_ecard2_message($message, $rec_name) {
return theme(
'fieldset',
$messagearray(
'#title' => t('Message'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
'#value' => $message),
'fieldset',
array(
'#title' => t('Message'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
'#value' => $rec_name)
);
}Thanks!!!!
Comments
Comment #1
wildmtsky commentedOh and another thing I noticed and maybe this isn't best place to post this but my values are not being inserted in the right db fields.. Did I miss something?
Comment #2
wildmtsky commentedPlease is there any way to add a name to the display besides the ecard message? I really need help with this.. I can't seem to get it right.
Comment #3
kars-t commentedHi,
sorry for the late answer. Your changes to the code would be successfull because the data is not provided to those functions that way. But I think I did understand what you want and try to create a fix for this.
Comment #4
kars-t commented#575128 by wildmtsky: Adding functionality php code questions.
Okay I did make a patch for this. This is in the new 6.x-2.x Version. Maybe I do a beta package tonight.