Unsetting pageroute title:

Pageroute uses "path" field of "pageroute_routes" table as a title for the first page in the route.

I would like to override this functionality.

I tried altering all the possible 'title' or 'name' fields available in pageroute module, can any one direct me where am I wrong.

Many Thanks,

Yevgeny

Comments

alianov’s picture

Status: Active » Closed (fixed)

Ok, solved..

function pageroute_show_route(&$route) {
.
.
.
if (isset($route->page_index[$page_name])) {
$page = pageroute_load_page($page_name, $route);
// drupal_set_title(check_plain($page->title));
$msg = 'foo';
drupal_set_title(check_plain($msg));
.
.