Skip to main content
added 25 characters in body
Source Link
madhurjya
  • 831
  • 1
  • 7
  • 14

hope this will help you..

function mymodule_views_pre_render(&$view) {

  if ($view->name == 'view_name') {

    // Here you can do any php you want to get the title you need for your view.

    $view->build_info['title'] = "<h2>My custom title!</h2>";
  }

or by views-view-unformatted--viewmachinename.tpl.php file

    <?php if (!empty($title)): ?>
  <h2><?php print $title; ?></h2>
<?php endif; ?>
<?php foreach ($rows as $id => $row): ?>
  <div<?php if ($classes_array[$id]) { print ' class="' . $classes_array[$id] .'"';  } ?>>
    <?php print $row; ?>
  </div>
<?php endforeach; ?>

hope this will help you..

function mymodule_views_pre_render(&$view) {

  if ($view->name == 'view_name') {

    // Here you can do any php you want to get the title you need for your view.

    $view->build_info['title'] = "<h2>My custom title!</h2>";
  }

or by views-view-unformatted.tpl.php file

    <?php if (!empty($title)): ?>
  <h2><?php print $title; ?></h2>
<?php endif; ?>
<?php foreach ($rows as $id => $row): ?>
  <div<?php if ($classes_array[$id]) { print ' class="' . $classes_array[$id] .'"';  } ?>>
    <?php print $row; ?>
  </div>
<?php endforeach; ?>

hope this will help you..

function mymodule_views_pre_render(&$view) {

  if ($view->name == 'view_name') {

    // Here you can do any php you want to get the title you need for your view.

    $view->build_info['title'] = "<h2>My custom title!</h2>";
  }

or by views-view-unformatted--viewmachinename.tpl.php file

 <?php if (!empty($title)): ?>
  <h2><?php print $title; ?></h2>
<?php endif; ?>
<?php foreach ($rows as $id => $row): ?>
  <div<?php if ($classes_array[$id]) { print ' class="' . $classes_array[$id] .'"';  } ?>>
    <?php print $row; ?>
  </div>
<?php endforeach; ?>
Post Undeleted by madhurjya
Post Deleted by madhurjya
added 100 characters in body
Source Link
madhurjya
  • 831
  • 1
  • 7
  • 14

hope this will help you..

function mymodule_views_pre_render(&$view) {

  if ($view->name == 'view_name') {

    // Here you can do any php you want to get the title you need for your view.

    $view->build_info['title'] = "<h2>My custom title!</h2>";
  }

or by views-view-unformatted.tpl.php file

    <?php if (!empty($title)): ?>
  <h2><?php print $title; ?></h2>
<?php endif; ?>
<?php foreach ($rows as $id => $row): ?>
  <div<?php if ($classes_array[$id]) { print ' class="' . $classes_array[$id] .'"';  } ?>>
    <?php print $row; ?>
  </div>
<?php endforeach; ?>

hope this will help you..

function mymodule_views_pre_render(&$view) {

  if ($view->name == 'view_name') {

    // Here you can do any php you want to get the title you need for your view.

    $view->build_info['title'] = "<h2>My custom title!</h2>";
  }

hope this will help you..

function mymodule_views_pre_render(&$view) {

  if ($view->name == 'view_name') {

    // Here you can do any php you want to get the title you need for your view.

    $view->build_info['title'] = "<h2>My custom title!</h2>";
  }

or by views-view-unformatted.tpl.php file

    <?php if (!empty($title)): ?>
  <h2><?php print $title; ?></h2>
<?php endif; ?>
<?php foreach ($rows as $id => $row): ?>
  <div<?php if ($classes_array[$id]) { print ' class="' . $classes_array[$id] .'"';  } ?>>
    <?php print $row; ?>
  </div>
<?php endforeach; ?>
Post Undeleted by madhurjya
deleted 99 characters in body
Source Link
madhurjya
  • 831
  • 1
  • 7
  • 14

hope this will help you..

function customModule_views_pre_rendermymodule_views_pre_render(&$view) {
    
      if ($view->name == 'view_name' && $view->current_display == 'display_id') {
    
        // Here you can do any php you want to get the title you need for your view.
    
        $view->build_info['title'] = "My"<h2>My custom title!"
      }
      </h2>";
      }

hope this will help you..

function customModule_views_pre_render(&$view) {
    
      if ($view->name == 'view_name' && $view->current_display == 'display_id') {
    
        // Here you can do any php you want to get the title you need for your view.
    
        $view->build_info['title'] = "My custom title!"
      }
      
      }

hope this will help you..

function mymodule_views_pre_render(&$view) {

  if ($view->name == 'view_name') {

    // Here you can do any php you want to get the title you need for your view.

    $view->build_info['title'] = "<h2>My custom title!</h2>";
  }
Post Deleted by madhurjya
Source Link
madhurjya
  • 831
  • 1
  • 7
  • 14
Loading