Hello. I'm creating a simple node module for making custom front pages for my site (module name is "portada" from name for "frontpage" in spanish). I'm following steps in manual (http://drupal.org/node/83055) with carefull comparision in head api. I believe that my code is correct, but when I'm trying to access to node/add/portada menu, system doesn't display the full form, returning this warning:
warning: array_merge_recursive() [function.array-merge-recursive]: Argument #2 is not an array in [myFileSystem]/modules/node/node.module on line 1976.
I'm blocked at this point because I can't see where I'm wrong. My code at this point is ("portada.module" file):
<?php
/**
* Implementation of hook_perm().
*/
function portada_perm() {
return array('create portada', 'edit portada');
}
/**
* Implementation of hook_access().
*/
function portada_access($op, $node) {
global $user;
if ($op == 'create') {
return user_access('create portada');
}
if ($op == 'update' || $op == 'delete') {
return user_access('edit portada');
}
}
/**
* Implementation of hook_node_info().
*/
function portada_node_info() {
return array(
'portada' => array(
'name' => t('portada'),
'base' => 'portada',
'description' => t('Nodo portada.')
)
);
}
/**
* Implementation of hook_menu().
*/
While developing a module, I am not sure what I did to my codebase but whenever I go to ?q=admin, I get a blank page. All the other links work ok (?q=admin/settings and ?q=admin/settings/)
the logs page (?q=admin/logs) page does not register any related messages... devel module is also of no use..
Currently it functions as intended in IE7 and FF, and good enough in Safari. The only browser we cannot give the seal of approval to is IE6, as the flyout menus do not function at all.
Users authenticate to my site using the Pubcookie. I have the Pubcookie installed and working fine.
In order for Pubcookie to work, I have to set my user registration settings to "Visitors can create accounts and no administrator approval is required."
I do not want users to be able to create accounts except as happens automatically when they authenticate through Pubcookie
I especially do not want anyone to be able "hijack" an account that hasn't been created yet by Pubcookie--e.g., I go in and create the Drupal account joe@domain.edu before joe logs in with Pubcookie and creates his account automatically.