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

probleme with autocomplete

Hi !

I need you help please, ... I am new here,
I create a new module witch called wprofile, and I create a menu (path : wprofile/autocomplete), It seems that all works but I got any result !!

If you want to this exemple :

form :
http://www.winevolutionnetwork.com/user/register

exemple :
http://www.winevolutionnetwork.com/wprofile/autocomplete/1/s

CCK - Does anybody know the steps to change a field name either in Drupal or Directly in DB

I am using 5.x and have named some CCK fields and then changed the labels such that the field names and label do not correspond well.

Does anybody know the steps to change a field name either in Drupal or Directly in DB. I expect I may have to change in several tables of the DB but was not sure.

Thanks in advance

Assign Role To new registered user based on e-mail

Is there a way to change access rules so that if a certain e-mail goes through during register it automatically puts them into a special role?

I am a php programmer and I would be willing to code this myself but I am new to the drupal system.

OG groups - limit # of groups based on role?

Hope I post this in the right place. currently, I am using mambo/Joomla and WP on various sites and evaluating Drupal for future use and maybe porting older sites.

So far so good!

I am particularly interested in Organic Groups functionality. I am playing around with it now on a test site, and one thing that I don't see is a way to limit the number of groups a user may create, probably based on the user's role (but other ways to do it would be OK too).

The basic idea is

fapi help needed

Hi there,

I've run into som problems with the forms api which I need som help solving. I want to create a table where each row is a form with radio buttons and the table should also be sortable by column. You can see a screenshot here. The page renders ok now but I cannot submit the data. The submit always uses the old database values (I guess the reason for this is my hack in the theme function). It also looks like there is only one form on the page. Not one per row as I think would be a cleaner solution. In the future I want to remove the submit button and use some javascript to submit each row if the user changes the value of the radio buttons.

This is what I have tried so far. It's really ugly...:
This is the main part of the function called from drupal_get_form()
<?php
// I want six columns
$options = array('', '', '', '', '', '');

// first fetch the objects
while ($data = db_fetch_object($result)) {
// Build the form elements
$form[$data->nid]['title'] = array('#value' => l($data->title, "node/" . $data->nid));
// Is this the right way to group the radio buttons?
$form[$data->nid]['foo'.$data->nid] = array('#type' => 'radios', '#default_value' => $default, '#options' => $options);
$form[$data->nid]['submit'] = array('#type' => 'submit', '#value' => t('Save'));
}

Pages

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