Skip to main content
code formatting
Source Link
AjitS
  • 10.9k
  • 7
  • 41
  • 73

I'm trying to alter the output of webform submissions in emails. At the moment, I'm just looking for the correct function. I can see there is a hook to alter the rendered output, which is being hit, but it is not changing the output of the emails. Am I replacing the Theme function in the correct place?

function seven_webform_submission_render_alter(&$renderable) {
 
  $renderable['#theme'] = 'seven_webform_submission_table';
 
  dpm($renderable);  
  kpr($renderable);  
}

function  seven_webform_submission_table($node, $submission, $email, $format) {  
  return 'test';  
}

I'm trying to alter the output of webform submissions in emails. At the moment, I'm just looking for the correct function. I can see there is a hook to alter the rendered output, which is being hit, but it is not changing the output of the emails. Am I replacing the Theme function in the correct place?

function seven_webform_submission_render_alter(&$renderable) {
 
  $renderable['#theme'] = 'seven_webform_submission_table';
 
  dpm($renderable);   kpr($renderable); }

function  seven_webform_submission_table($node, $submission, $email, $format) {   return 'test'; }

I'm trying to alter the output of webform submissions in emails. At the moment, I'm just looking for the correct function. I can see there is a hook to alter the rendered output, which is being hit, but it is not changing the output of the emails. Am I replacing the Theme function in the correct place?

function seven_webform_submission_render_alter(&$renderable) {
  $renderable['#theme'] = 'seven_webform_submission_table';
  dpm($renderable); 
  kpr($renderable); 
}

function  seven_webform_submission_table($node, $submission, $email, $format) { 
  return 'test'; 
}
added 11 characters in body
Source Link
monymirza
  • 3.5k
  • 4
  • 27
  • 46

I'm trying to alter the output of webform submissions in emails. At the moment, I'm just looking for the correct function. I can see there is a hook to alter the rendered output, which is being hit, but it is not changing the output of the emails. Am I replacing the Theme function in the correct place?

function seven_webform_submission_render_alter(&$renderable) {

$renderable['#theme'] = 'seven_webform_submission_table';

dpm($renderable); kpr($renderable); }

function seven_webform_submission_table($node, $submission, $email, $format) { return 'test'; }

function seven_webform_submission_render_alter(&$renderable) {

  $renderable['#theme'] = 'seven_webform_submission_table';

  dpm($renderable);   kpr($renderable); }

function  seven_webform_submission_table($node, $submission, $email, $format) {   return 'test'; }

I'm trying to alter the output of webform submissions in emails. At the moment, I'm just looking for the correct function. I can see there is a hook to alter the rendered output, which is being hit, but it is not changing the output of the emails. Am I replacing the Theme function in the correct place?

function seven_webform_submission_render_alter(&$renderable) {

$renderable['#theme'] = 'seven_webform_submission_table';

dpm($renderable); kpr($renderable); }

function seven_webform_submission_table($node, $submission, $email, $format) { return 'test'; }

I'm trying to alter the output of webform submissions in emails. At the moment, I'm just looking for the correct function. I can see there is a hook to alter the rendered output, which is being hit, but it is not changing the output of the emails. Am I replacing the Theme function in the correct place?

function seven_webform_submission_render_alter(&$renderable) {

  $renderable['#theme'] = 'seven_webform_submission_table';

  dpm($renderable);   kpr($renderable); }

function  seven_webform_submission_table($node, $submission, $email, $format) {   return 'test'; }
Source Link
user5681
user5681

Change format of webform emails via hook

I'm trying to alter the output of webform submissions in emails. At the moment, I'm just looking for the correct function. I can see there is a hook to alter the rendered output, which is being hit, but it is not changing the output of the emails. Am I replacing the Theme function in the correct place?

function seven_webform_submission_render_alter(&$renderable) {

$renderable['#theme'] = 'seven_webform_submission_table';

dpm($renderable); kpr($renderable); }

function seven_webform_submission_table($node, $submission, $email, $format) { return 'test'; }