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

wildmtsky’s picture

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?

wildmtsky’s picture

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.

kars-t’s picture

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.

kars-t’s picture

Status: Active » Fixed

#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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.