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

how to use this '#options' => array('0' => t('No'), '1' => t('Yes')), to connect to the Mysql table?

Hi Everyone,

I'm trying to create a module based on the internal request.
Is there anyway for me to do a connect to my table and then display the result in the #option, instead of hardcoding it?

$form['selected'] = array('#type' => 'select',
'#title' => t('Selected'),
'#options' => array('0' => t('No'), '1' => t('Yes')),
'#default_value' => $edit['selected'],
'#description' => t('Set this to Yes if you would like this category to be selected by default.'),
);

viewing permission

i must be missing something????
i can add content install modules and get around drupal quiet happily,

but i can't have separate navigiation for

admin
user
surfer

is there anyway to upload a page and set the viewing permission ??

thanx,

Syndicating CCK type

I am trying to syndicate a CCK type from one site to another and can't quite get it work out the way that I would like. The CCK type is an Events type with a Start Date. As it is, all of the fields of the CCK are jumbled into one field called Description, with Start Date, End Date and everything else. The problem is that the syndicated content orders by Creation date by default, so no matter what the Start Date is, the content is displayed by latest created to oldest.

Need pagination for classifieds module

I need pagination for classifieds. Right now i am using classifieds module to list classifieds. It shows all the posting in a single page without pagination. I need pagination to list the classifieds . Can anyone please help me.

Thanks

Inserting markup between form element label and widget

Hello all,

I'm trying to create a 'filter-as-you-type' select box -- that is, a select box with a text field directly above it that dynamically hides/shows options in the select box as you type in the text field, based on which options match what you've typed so far.

Pages

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