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