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 !!
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.
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).
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'));
}