I'm getting this error:
warning: call_user_func() expects first argument, 'page', to be a valid callback in /homepages/39/d89782635/htdocs/includes/menu.inc on line 105.
Here's my phpMyAdmin.module code:
function phpmyadmin_link($type, $node = 0, $main)
{
if ($type == "system")
{
menu('admin/phpMyAdmin-2.5.4/index.php', t('phpMyAdmin'), 'page');
}
}
function phpmyadmin_page()
// redirect to your installation of phpmyadmin.
{
}
(Basically, somebody else on this site wrote this, I just copied, as I'm quite clueless how the internals of drupal works...)
Anyway, I know I should put something in the phpmyadmin_page function, but what?
Also, I changed the path of my index.php from my phpMyAdmin install in the menu() call, and the output actually cleared the screen and displayed a PhpMyAdmin heading, but it also gave the error, so I'm thoroughly confused...
Someone suggested I look at simple modules to get an idea of how this works, but I've been going over the code and I can't find another module that does what I want mine to do...
Basically, I want to be able to click into my phpMyAdmin index from in my website, but have the link only appear for admins (so put it in the admin folder and restrict access). Don't want everyone going there.
How do I do this?