drupal-6


Using multiselect module in custom module (drupal 6)


Im programming my own module in Drupal 6 and create a form, but I need something to select data from a list. I am trying to use multiselect module. I can show the field with options, but on submit I cant get the selected options.
I made the following:
$element = array(
'#type' => 'field_multi_select',
'#title' => 'Field name',
'#description' => 'description',
'#multiple' => true,
'required' => true,
'#field_name' => 'field_select',
'#columns' => array('value'),
'#value' => array(array('value' => null)),
'#process' => array('multiselect_select_process'),
'#enable'=>true,
'module' => 'module name' // set here you current module name
);
$form['#field_info']['field_multi_select'] = $element;
$element = multiselect_select_process($element, NULL, $form_state, $form);

Related Links

transferring drupal site from localhost to live server
drupal 6 : node.tpl.php $links variable, where to configure the content?
Drupal: Create menu item for a view
How to render block programmatically with standard theme
Login to drupal
Apache Solr search index problem
drupal database backup [closed]
Drupal url alias and views and clear urls for taxonomy issues
Drupal 6: How do you print Taxonomy Terms as a CSS Body Class?
Drupal cck checkbox with global setting
How to update Customer Information messages in Drupal :: Ubercart
Hide username and date in Drupal page
How to add custom blocks in drupal?
Imagefield Crop – use existing file [closed]
Mix and match of products in Ubercart
A link for previous page in current page

Categories

HOME
testing
netsuite
mockito
pycharm
nullpointerexception
relative-path
octobercms
getelementsbytagname
yahoo-oauth
maven-3
paw-app
amortized-analysis
rubygems
jxls
ip
autotools
esper
synchronization
vault
tomcat6
size
quartz-scheduler
caml
opentracing
saxon
pc
transformation
propel
crystal-reports-2008
shared-hosting
google-pagespeed
object-detection
physics-engine
arabic
opennlp
underflow
react-css-modules
info.plist
uninstall
tooltipster
strncpy
typo3-6.2.x
ping
subdomains
objectanimator
google-cloud-nl
gsoap
nouislider
nameservers
airconsole
google-sites-2016
mapdb
disassembling
serverside-rendering
uft-api
android-fingerprint-api
broadcastreceiver
youcompleteme
chain-builder
jquery-validate
clean-architecture
sage-one
mplayer
google-perftools
np-complete
sqlbulkcopy
linode
lync-client-sdk
color-profile
firmata
instant
login-control
bstr
multiple-regression
react-native-listview
suffix-tree
energy
uid
pervasive-sql
lib.web.mvc
metaclass
angular-leaflet-directive
emailrelay
ideamart
appfabric-cache
lustre
geonetwork
sorl-thumbnail
oxwall
google-style-guide
responsive-slides
aapt
expected-exception
system.net.webexception
android-2.2-froyo
pyhdf
access-rights
tidy
tws
easy-install
eclipse-memory-analyzer
sqlperformance
sabredav
jquery-knob
google-email-migration
subscript
horizontal-accordion
rfc1123
dmx512
wise
ext3
firefox4
ctp4
privilege
text-coloring

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App