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

Drupal 6: How to use form_set_error on specific cell when using tablefield module
Multiple location in single GMAP
Drupal 6 site not displaying image links
How to display a calendar in Drupal?
Drupal 6 - Passing variable between functions specifically - Passing menu name to phptemplate_menu_item
What procedure does default form submit button handler follow?
wamp reinstall - how to replace new files with old files
URL based breadcrumbs display
How to remove the duplicate items from the Taxonomy terms view in Drupal-6?
Changing Drupal module template doesn't take effect
How to show list of custom objects in a page in Drupal
Some cck fields not turning into HTML
Drupal 6 Registration Password Field Missing
Drupal 6 To 7 Migration
proximity search in apache solr
hook_theme not being called

Categories

HOME
ionic-framework
wso2-am
gerrit
openmp
cookies
ngrx
vmware
at-command
packages
installshield
alpha
append
vifm
alignment
remote-access
static-libraries
hapi
openrefine
crystal-reports-2008
swingx
facebook-instant-articles
php-openssl
restful-authentication
blazemeter
vlsi
saas
large-file-upload
c++-amp
sql-server-2012-express
javascriptcore
phonegap
jspresso
wpf-controls
plsql-psp
bitbucket-pipelines
swisscomdev
x11-forwarding
gesture
email-templates
skeleton-css-boilerplate
komodoedit
react-scripts
logparser
pebble-watch
tizen-native-app
pg-dump
mako
dwscript
vtigercrm
migradoc
gridpane
probability-density
mikroc
trash
nsfilemanager
persist
skype4py
ios4
goose
revolution-r
freedesktop.org
ios8-today-widget
jmeter-maven-plugin
django-unittest
sortedlist
clipperlib
python-green
formatjs
google-style-guide
id3v2
castle
project-planning
ceil
jubula
mechanize-ruby
dealloc
cloud-connect
algebraic-data-types
typo3-neos
mcts
oam
xsockets.net
aqtime
spring-io
back-stack
pygit2
browser-detection
isnullorempty
infobox
joyent
servicehost
createwindow
nsviewanimation
firefox-5
database-management
photoshop-cs4
ti-dsp
privilege
sector

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App