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

wildmtsky - September 11, 2009 - 21:38

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

wildmtsky - September 17, 2009 - 16:00

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

Kars-T - November 12, 2009 - 16:36

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

Kars-T - November 12, 2009 - 16:47
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.

#5

System Message - November 26, 2009 - 16:50
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.