I am new to drupal and really don't grasp the concept of how to adjust a 'hook' which is what I presume I need to do to get the module phpgedview working for two seperate directories/installs.
Could somebody look at the following code and help me adjust it please?
In essence I have installed two phpgedviews in seperate directories,
1 x for public viewing with no sources/media = /modules/genealogy/
1 x for private viewing by members with all records/media = /modules/phpgedview/
Both directing to different databases and index file's so there is no conflict.
I have re-written the phpgedview mod to reflect /genealogy/ and installed ok (so now there are two mods phpgedview & genealogy)
The problem I am having is in the template.php file within drupal/theme/slash, both mods are calling the template and I need to add /genealogy/ into it somehow but have no clue how.
<?php
// $Id: template.php,v 1.1 2006/07/27 23:11:43 karens Exp $
function _phptemplate_variables($hook, $vars = NULL) {
switch ($hook) {
case ('page'):
if (function_exists('phpgedview_path')) {
if (arg(0) == phpgedview_path()) {
$vars['template_file'] = 'page-phpgedview';
}
}
break;
}
return $vars;
}
I think I need a second function in there calling the following but am not sure how to include it
if (function_exists('genealogy_path')) {
if (arg(0) == genealogy_path()) {