adding functionality php code questions
wildmtsky - September 11, 2009 - 21:09
| Project: | ecard |
| Version: | 6.x-1.6 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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!!!!

#1
Oh 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?
#2
Please 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.
#3
Hi,
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.
#4
#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.
#5
Automatically closed -- issue fixed for 2 weeks with no activity.