panopoly_demo.module in Panopoly Demo 7
File
panopoly_demo.module
View source
<?php
include_once 'panopoly_demo.features.inc';
function panopoly_demo_menu_alter(&$items) {
$items['node']['page callback'] = 'drupal_goto';
$items['node']['page arguments'] = array(
'demo',
);
}
function panopoly_demo_ctools_plugin_directory($module, $plugin) {
return 'plugins/' . $plugin;
}
function panopoly_demo_menu_link_alter(&$item) {
if (empty($item['path'])) {
$item['path'] = $item['link_path'];
}
}
function panopoly_demo_migrate_api() {
$api = array(
'api' => 2,
'groups' => array(
'panopoly_demo' => array(
'title' => t('Panopoly Demo Content'),
),
),
'migrations' => array(
'PanopolyDemoNode' => array(
'class_name' => 'PanopolyDemoNode',
'group_name' => 'panopoly_demo',
),
'PanopolyDemoMenu' => array(
'class_name' => 'PanopolyDemoMenu',
'group_name' => 'panopoly_demo',
),
),
);
return $api;
}