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

custom node title

I have a custom node type and I want to set the node's title based on other user input or from data in my own db table. It seems to be impossible to do this with the module hooks.

4.7 does include the ability for node titles to be handled by modules but this does not seem to help me. It allows for hook_form() to ask the user for title. That's not what I want. I want to generate the title based on responses to other form items, or by retrieving data from a table. I do not want a title field in my form.

A module to integrate Macromedia Contribute content

I probably should have tried something simpler for my first module, but...
I'm working from the node_example.module code, and so far, along with all the other standard stuff, I have a form:


/**
* Implementation of hook_form().
*/
function mmcontrib_form(&$node) {
$form['title'] = array('#type' => 'textfield', '#title' => t('Title'),
'#size' => 60, '#maxlength' => 128, '#required' => TRUE,
'#default_value' => $node->title);
$form['body'] = array('#type' => 'textarea', '#title' => t('Body'),
'#default_value' => $node->body, '#required' => FALSE );

// Now we define the form elements specific to our node type.
$form['path'] = array('#type' => 'textfield', '#title' => t('Import Path'),
'#default_value' => $node->path, '#size' => 60, '#maxlength' => 256,
'#weight' => 0);
$form['subpath'] = array('#type' => 'textfield', '#title' => t('Substitution Path'),
'#default_value' => $node->subpath, '#size' => 60, '#maxlength' => 256,
'#weight' => 1);
$form['startdelim'] = array('#type' => 'textfield', '#title' => t('Start import at:'),
'#default_value' => $node->startdelim, '#size' => 60, '#maxlength' => 256,
'#weight' => 2);
$form['enddelim'] = array('#type' => 'textfield', '#title' => t('End import at:'),
'#default_value' => $node->enddelim, '#size' => 60, '#maxlength' => 256,
'#weight' => 3);

Difficulty publishing modules on drupal.org

I recently checked two modules into drupal's contributions/modules CVS directory. Then, I added them to drupal.org so they would appear under downloads->modules->cvs.

The first, called Worklog worked fine. It appears under "My projects" and under downloads.

Linking from a node to another node

Is there a module that will let me write [node:45656] and turn it into a proper a href to the relavent node ?
Sort of like the attached_node module does, but without the thumbnail...

how to hide the tracker module or how to hide the particular node

Hi every body,

I got some problem, first one is How to hide the tracker module in other users, it is not posible ..... how to hide the particular node in the particular user...because i dont what to show all recent post to all users

pls send the tips to me

balu....

don't want a author and time-stamp to show up in static pages in drupal

hi every body,

i dont what a Author name and time-stamp to show in the static pages,

how to hide that, pls give me tips....

balu....

Pages

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