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

How to split radios buttons in multiple collapsible field sets

Hi all,
all is in the title, my radios list is very long, I wan't to keep exclusives choices but I need to save screen space by collapsing groupes of radios buttons.

Thinks

how to develope the new module in drupal

Tell me about how to create the module for drupal . bcoz i have diffrent ideas regarding this so please tell
me the way of module development

How the values come from the form to $node ?

Hello everybody,

I am new to drupal and trying to develop an own form element type via hook_elements. I want to attach a pair of "Title" / "Text" information to the form delivered by the image module to add some more information to images.

My code looks like this:


/* extending the form of 'image' with a pair of 'Title/Text' */
function album_form_alter($form_id,&$form) {

if($form_id == 'image_node_form') {

$form['grussbildinfo']['titelundnachricht'] = array(
'#type' => 'titelundnachricht',
);
}
}

/* defining a custom element type 'titelundnachricht' for pairs of title/text, who will be attachted to images */
function album_elements() {
$type['titelundnachricht'] = array(
'#grussbildtitel' => '',
'#grussnachricht' => '',
);
return $type;
}

/* the theme details for rendering the Title/Text pair */
function theme_titelundnachricht($element) {
$result .= ' ' . $element->grussbildtitel . '';
$result .= ' ' . $element->grussnachricht . '';

return $result;
}

/* hooking into when an image is written: Adding the 'Title/Text' info to its table, too */

Common Login for multiple sites

Hi,
I wanted to know how to login to drupal using a non-drupal page.

Can I create a php page which takes username and password and then logs into to drupal ?

Trouble with pager_query & theme_pager

I've written a module that returns all nodes of type tale that were submitted within the last month. Now it works perfectly except that the pager_theme doesn't seem to work. It gets the first 10 posts (or how ever many posts I set the default to) but doesn't give me the page links to go to the later posts. I tried to troubleshoot this for a few hours yesterday (adding a count query at the end etc) but got nowhere......Any ideas (code below).

Overriding db_rewrite_sql

I've created some patches to the node, og, and taxonomy_access modules which allow them to work together: http://groups.drupal.org/node/3700

What I want to do now is start removing some of these patches by putting the functionality I need into one separate module.

Pages

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