commons_home.module in Drupal Commons 6.2
File
modules/features/commons_home/commons_home.module
View source
<?php
include_once 'commons_home.features.inc';
function commons_home_menu() {
$items = array();
$items['home'] = array(
'title' => 'Home',
'description' => 'The community homepage',
'type' => MENU_NORMAL_ITEM,
'weight' => 0,
'menu_name' => 'primary-links',
'page callback' => 'commons_home_homepage',
'access callback' => TRUE,
'file' => 'commons_home.pages.inc',
);
return $items;
}
function commons_home_views_pre_view(&$view) {
if ($view->name == 'homepage_group_showcase') {
$title = $view->display_handler
->get_option('title');
$view->display_handler
->set_option('title', t($title, array(
'%site-name' => variable_get('site_name', ''),
)));
}
}