drupal_get_title

5 path.inc drupal_get_title()
6 path.inc drupal_get_title()
7 bootstrap.inc drupal_get_title()
8 bootstrap.inc drupal_get_title()

Gets the title of the current page.

The title is displayed on the page and in the title bar.

Return value

The current page's title.

9 calls to drupal_get_title()

File

includes/bootstrap.inc, line 1827
Functions that need to be loaded on every Drupal request.

Code

function drupal_get_title() {
  $title = drupal_set_title();

  // During a bootstrap, menu.inc is not included and thus we cannot provide a title.
  if (!isset($title) && function_exists('menu_get_active_title')) {
    $title = check_plain(menu_get_active_title());
  }

  return $title;
}

Comments

create your own

create your own views-view-grid.tpl.php file

find this line:

<td class="<?php print $column_classes[$row_number][$column_number]; ?>">

and change it to this:

<td class="<?php print $column_classes[$row_number][$column_number]; if(!$item): ?> empty<?php endif; ?>">

the if(!$item): ?> empty<?php endif; ?> checks to see if the current cell is empty and adds the empty class

Login or register to post comments