Ok, I feel really stupid when reviewing existing modules. I have spent several days now on trying to learn some php and module development and I have hacked existing modules to try to accomplish what I want. I know it isn't right, but need some guidance.
All I want to do is to run a program as a node. phpATM specicifically. I am not een looking to hand off accounts or anything, just run it. Here is my module code, but I just get a blank screen:
<?php
// $Id: phpatm.module
function _phpatm_all() {}
/**
* Implementation of hook_help
*/
function phpatm_help($section) {
switch($section) {
case 'admin/modules#description':
return t('Integration with phpATM');
}
}
/**
* Implementation of phpatm_perm
*/
function phpatm_perm() {
return array('access phpatm');
} // function phpatm_perm
/**
* Implementation of hook_menu
*/
function phpatm_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array('path' => 'phpatm',
'title' => t('phpATM'),
'callback' => '_phpatm_all',
'access' => user_access('access gallery'),
'type' => MENU_NORMAL_ITEM);
}
return $items;
}
/**
* Main phpatm display page
*/
function phpatm_page() {
require_once('/phpATM/index.php');
drupal_set_html_head(implode("\n",$css));