This forum is for assistance with theme development.

Creating a customize view of views-view-table.tpl.php to views-view-table--myview--page.tpl.php

<?php

/**
 * @file
 * Template to display a view as a table.
 *
 * - $title : The title of this group of rows.  May be empty.
 * - $header: An array of header labels keyed by field id.
 * - $caption: The caption for this table. May be empty.
 * - $header_classes: An array of header classes keyed by field id.
 * - $fields: An array of CSS IDs to use for each field id.
 * - $classes: A class or classes to apply to the table, based on settings.
 * - $row_classes: An array of classes to apply to each row, indexed by row

how to call drupal_mail in views-view-fields.tpl.php

Hello everybody,
I want to call drupal_mail in views-view-fields--my-view.tpl.php. However, it doesn't work.

$body = 'This is body of email';
$to = $_POST['email'];
$subject = 'Email subject';
$message = drupal_mail('views', 'Mobile application', $to, '', array('body' =>$body, 'subject' => $subject, variable_get('site_mail', ini_get('sendmail_from')), TRUE);

The drupal_mail() is incorrect. How to fix it.
Help me please,
Thank you very much,

Question about updating or upgrading a custom theme.

Can you update a Drupal 6 custom theme to a Drupal 7 version and keep it looking exactly the same? I don't know coding, so first, can you do it without any coding involved? Second, can you even do it with coding involved? If so, is this not even worth it?

How to alter menu of module in theme ?

Hi all,
I have a module with menu items, and i need alter menu of this module in theme(because this module is used in many theme, i can not alter on it directly). Please support me a solution for this problem!

How to print field to block.tpl ?

I want to print a custom Field in Block

print field in block-block-1.tpl.php

thanks

How to remove HOME from navigation?

Hi all,

whenever I try a new theme for my homesite, I always have a "Home" link in my navigation. How can I get rid of it? Is there somewhere a configuration to be disabled?

Thank you very much for your answers,
John

Pages

Subscribe with RSS Subscribe to RSS - Theme development