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

How to create a search form with persistent values and list results.

I'm creating a custom profile module and need to have a search function in this. For this to work nicely I need the form to keep it's values across requests and need access to these values in my page to create a list of matching profiles. I don't like keeping these values in a session variable as I'd like to provide the possibility of having several searches open. Are there any best practices on how to achieve this?

CCK group zero or more times

I've just started playing with CCK. I want to create a content type based on an XML schema I have. A problem I've come up against is that I want a CCK group to occur zero or more times for the content type. Is this possible?

how to arrange the checkboxes in a horizontal row

hey folks, i am have a problem with the form api of the check boxes.

here is my form definition
$options = array()
$form['topic'] = array('#type' => 'checkboxes',
'#title' => t('topic'),
'#default_value' => $values,
'#options' => $options,
),

the boxes are arranged in a vertical line, i want to arrange them in a horizontal line, i know i can change the theme css to float:left, but sometimes i wanna keep the checkbox horizontally, are there any way to arrange them horizontally?
thanks

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.

Pages

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