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

formatiing forms layout, grouped fields, headings, etc...

I've been doing a lot of work with different kinds of form fields in my custom content module...

what I'm wondering is if there's a way to add other elements to the form page, to create different sections, group fields together, maybe put some of them inside a div block with a border so the user can see them grouped together, and have a some h1 headings to describe the groups

also if you know where to find information on customizing form themes please feel free to post it here, I haven't found it yet....

thanks in advance!
EK

why use Database abstraction layer?

why use Database abstraction layer instead of regular php mysql functions?

I normally use mysql_result() with 3 paramaters, but db_result() only takes 2, so I have no idea how to specify the field I want from a row with the result of a 'SELECT *' query

hook_insert is receiving an empty node

I've implemented hook_insert and hook_nodeapi, and both are receiving node as empty. Here's what I have for *_nodeapi:

function scholar_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {/*{{{*/
    print("<pre>");
    print("op = $op\n");
    var_dump($node);
    print("</pre>");
    ...
}

When I save my page, I see that op is prepare, then validate, then submit, then insert, and each time, node has everything set to null.

Viewing the data works fine (if there is already data in the database). I can even go to the edit page, and it will put the correct values in the form. It's just the insert and update that just won't work.

Any advice?

Thanks,
Richard

New Web Clippings module

Just posting a module idea I have been coming back to that combines 2 existing ideas...
1. I really like how the drupal site www.nowpublic.com splits the browser into frames as you click an external link... It keeps you within their site as you browse....
2. I really really like how the browser from www.flock.com allows you to drag and drop text and images from the web as you browse to be added to your blog at any time....

Classified

Hi,

I would like to add classifieds ads to a website. How can I do that with drupal ?
Any hints would be greatly appreciated.

Thanks
Thierry

How to get the name of node type in 4.7?

I have been struggling to find the variable that gives a node type in drupal 4.7.

I know that node_get_name($type) gives the name of node type, but how do you get the $type (node type) from the first place? My module has 3 newly defined node types (created in hook_node_info)and I have to differentiate which is chosen by a user. Either $node->type or $node->info didn't give a node type.

Any idea? Many thanks for help in advance.

Pages

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