Drupal is up and running but how do I ...?

checkbox forms

I'm using the new forms in CVS HEAD. I'm writing a module with custom user profile values (because I want more control over the forms than the profile.module gives. I'm simply hard-coding values into it for now.

When I make a checkbox, it's always selected, regardless of whether I unselect it or not before submitting. All other form types seem to work properly (saving the values for the users). When I change the type of the checkbox to 'textfield', it works (with a value of '1', which I can change, saving it propertly). Going back to 'checkbox', it fails again.

I have the following code:

<?php
function profile_custom_user($type, &$edit, &$user, $category = NULL) {
switch ($type)
{
case 'form':
return profile_custom_form($edit, $user, $category);
case 'categories':
return profile_custom_categories($user);
}
}

function profile_custom_form($edit, $user, $category)
{
// ...

// this doesn't work
$form['notABuyer']['profile_custom_buyer'] = array(
'#type' => 'checkbox', '#title' => 'Home Buyer',
'#default_value' => $edit['profile_custom_buyer'],
'#description' => 'If you are interested in buying a home, please check here.'
);

// this works
$form['questionBank2']['profile_custom_currentPosition'] = array(
'#type' => 'textfield', '#title' => 'Current Position',
'#default_value' => $edit['profile_custom_currentPosition'],
'#description' => 'Please tell us your current job position or title.'

FriendsElectric theme seems to change widths with top level book pages

Any book page that has book pages at a level below seems to cause the width of the main content area to widen thus changing the overall width (I believe making it larger than 100%) of the entire page. Is there something special about these book pages? How do I stop this from occuring?

audio.module error

I am fairly new to drupal, but already am very impressed. I have a site for local musicians, and am using the audio.module. I have no problems getting songs to play, however, i get the following message:

warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/burtoncity/www/www/includes/common.inc on line 554.

any help with this issue would be greatly appreciated.

http://www.burtoncity.com

How to change certain words as displayed?

If I wish to change, for example, the words User to Member and Avatar to Picture, do I have to search the software for instances of those terms and manually replace them, or is there a central language file?

Curtis

I need Event like this http://www.livingingenesee.org/

Hi all,
I need create exactly same Events like this http://www.livingingenesee.org/
I install Event module but I don't know how create events.
Thanks

How do I enable direct mailing to the author of a page

When I am reviewing the posts of my students on the drupal site, I would like to be able
to send them email directly from that page. What do I need to change, so there is some
item that leads me to the email address directly?

Pages

Subscribe with RSS Subscribe to RSS - Post installation