drupal_form_submit(): Where do I find the key names for the $form_state['values'] array?

The Drupal API gives the following example of how to use drupal_form_submit() to register a new user. I'm wondering how I find the correct key names for the $form_state['values'] array, such as ['name'], ['pass']['pass1'], etc, for other types of forms.

How to; Have user choose role in registration form

In Drupal 6 I was able to set up in the registration form a radio button that selected/assigned a users role....thus giving them certain permissions and displaying certain information.

But I cant remember how and cant figure out how to do it on Drupal 7

I have been playing with Profile 2 module and can add fields but cant actually get it to set roles.

I know there was a video tutorial in the Lynda tutorials that briefly discussed profile as nodes ...which I think might hold the answer.

Any suggestions

Web Developer Toolbar & Drupal 7 - CSS not completeley displayed/parts of site missing

I'm used to do theming with Drupal 6 using the Firefox/Google Chrome "Web Developer Toolbar". I was able to edit the css files directly while getting the result displayed at the same time. This worked really fine for Drupal 6.

Now I started theming with Drupal 7 and I'm experiencing some problems:
I installed Drupal 7 (with the zen theme and zenophile module).
Then I started the Web Developer Toolbar and wanted to display the CSS files with "edit css" as usually. At this moment, parts of the site vanished, e.g. the blocks and the menues. I only see the middle part of the site.
I tried to disable some css files - nothing changed.
I deleted all rtl-CSS-files to reduce the number of CSS files - nothing changed.

Then I discovered that if you enable "aggregate and compress CSS files" (development --> performance) and use the Web Developer Toolbar to display the CSS files, everything looks fine, there are only 4 CSS files left, but (logically) you aren't able to edit these compressed CSS files any more. So that's not the solution to my problem.

The problem is not a zen/zenophile problem - I have the same problem with all themes I tried.

Now I suppose that the Webdeveloper Toolbar has some problems because there are too many CSS files in Drupal 7?
Or is there another explanation for my problems?
Does anyone else here have the same problems?

Contact form on node

Hi

I am creating a car rental site and have content type called "cars".
On every node i need to place a contact form to an email specified by the creater of the specific car.

How do i accomplish this?

Aggregator - paging does not work

can someone confirm that version 7's aggregator does not display the paging area at all? I've been having problems with it - it being not there. :O

when viewing an aggregated category, the list of items just stops and no other feed items are displayed, not paging as well.

I've also tried 3 different themes including garland.

How too configure views so it link to external URL when you click on content title

Hello drupal!

I have problem redirect to external URL when someone click on the content title in views.

I have used the module Link to create a field in Views. The link field is placed before the title Content.
In the Rewrite results i have selected "Output this field as a link" and opt in for "External server URL"

When i press on the title with this settign it just show node/X. How can I change it to display the URL that is in the link field ?

Thanks
Mårten

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x