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

Please help me customize this module a bit. (auto node title)

Hi,

I am trying to build a Drupal site where the node title is computed by adding some existing CCK fields, and it's really a big pain.

I have found the auto node title module, wich already does half of what I need. This code hides the title form fields from the node types I choose, and it changes the node title to the content type.
Instead of the content type, I want the title to be 3 custom fields, I already managed displaying this title in the a views page with this code:

<h2 class="review"><a href="<?php print $url; ?>"><?php  print $field_year_value;?> <?php print $term_node_1_name; ?> <?php print $field_model_designation_value; ?></a></h2>

However, using the method only gives me more problems and inconsistencies. So hopefully I can change the module code below to use my CCK fields rather then content type for a title.
I have some experience messing around with php code, but the code below that generates $title is beyond me, I don't get what's going on with the % signs.

If someone could point me into the right direction or help me change this code it would be greatly appreciated!
JR

<?php
// $Id: auto_nodetitle.module,v 1.3 2006/08/29 12:24:11 fago Exp $

/**
* @file
* Allows hiding of the node title field and automatic title creation
*/

/**
* Implementation of hook_help().
*/
function auto_nodetitle_help($section) {

anyone working on search buttons on forms

i want to create a module wherein there is a form in which if u type a name and press "SEARCH" button the whole record corresponding to that name has to be displayed.

How to create "SEARCH " and "RESET "button?

Capturing flexinode image upload

Hi,

I have a flexinode that is image based. When a user uploads an image I want to hook into the upload method and capture certain information first and depending on that info change the destination location for the image.

Anyone have any suitable ideas for hooking into this?

Thanks
Bernard

Custom Search Form with or without search module?

I have a custom module that I want to make searchable. The thing is I don't need any kind of keyword search. In fact it won't even search the node table. It will search based on three fields in the custom table I defined. I'm wondering if there is any reason to bother with the search module for this. The hook_search docs say you can define additional form elements with hook_form_alter, but I'm not sure if the search module would even offer me anything.

Invalid marker content in userpoints.module

I got this error while using extractor.php file to get *.pot file from userpoints.module, anybody knows how to fix it?

Starting.

Processing userpoints.module...
Invalid marker content in userpoints.module:296
* format_plural($points,$singular,$plural)

Processing userpoints.install...
Processing contrib/userpoints_reset.module...
Processing contrib/userpoints_retroactive.module...

Done.

path not translated correct after upgrade to 4.7

in 4.6 site i had a primary link defined as:

<a href="flexinode/table/1?sort=asc&order=When" class="active">Events </a>

when i update to 4.7 i get a new entry in menu table as Events with path of

flexinode/table/1?sort=asc&order=When

this all seems ok.. BUT...

in 4.76 site hovering over link i get:

flexinode/table/1?sort=asc&order=When

which goes to: flexinode/table/1?sort=asc&order=When

Pages

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