This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Ccreating a new node module: "warning: array_merge_recursive() in node.module"

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().
*/

blank page on ?q=admin

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..

any clues ?

waaaaa :(

Nice_Menus IE6 Compatibility Issue

Currently have tried everything from CSS changes to general changes, and been testing with default CSS file, etc... Mixed messages from testing.

The site is: http://www.iurecsports.org/

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.

Table Manager Module Styles

Is there a way to style the output of the Table Manager Module? I would like to be able to change the font colour and zebra stripe the <tr> tags.

account creation, access rules, and distributed auth (pubcookie)

What I need to do

  1. Users authenticate to my site using the Pubcookie. I have the Pubcookie installed and working fine.
  2. 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."
  3. I do not want users to be able to create accounts except as happens automatically when they authenticate through Pubcookie
  4. 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.

Mailhandler showing up in user profile

Ref: http://www.newlyweds-uk.com/user/jan_harney

How do I prevent the Mailhandler showing up in my user profiles?

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions