Commit b86ad6e5 authored by jcnventura's avatar jcnventura

Coder fixes

parent b62f7f5a
......@@ -574,7 +574,7 @@ function _print_get_title($path) {
if (!empty($menu_item['title'])) {
return $menu_item['title'];
}
elseif (substr($menu_item['page_callback'], 0, 6) == 'views_') {
elseif (drupal_substr($menu_item['page_callback'], 0, 6) == 'views_') {
// It's a view, load the view to have access to the title
$view = views_get_view($menu_item['page_arguments']['0']);
return $view->get_title();
......
<?php
/**
* @file
* Printer-friendly version Views integration
*
* @ingroup print
*/
/**
* Implements hook_views_data().
*/
......
<?php
/**
* @file
* Custom Views integration join for the page counters
*
* @ingroup print
*/
class print_join_page_counter extends views_join {
// PHP 4 doesn't call constructors of the base class automatically from a
// constructor of a derived class. It is your responsibility to propagate
......@@ -13,4 +21,3 @@ class print_join_page_counter extends views_join {
parent::build_join($select_query, $table, $view_query);
}
}
?>
<?php
/**
* @file
* Send by email Views integration
*
* @ingroup print
*/
/**
* Implements hook_views_data().
*/
......
<?php
/**
* @file
* PDF Version Views integration
*
* @ingroup print
*/
/**
* Implements hook_views_data().
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment