Closed (fixed)
Project:
Multiselect
Version:
5.x-1.2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Jun 2007 at 11:29 UTC
Updated:
27 Feb 2009 at 03:34 UTC
Is there any way to program the defaults. That is, to pass an argument that would set defaults of what is selected?
Comments
Comment #1
michael_kirk commentedNo. That would be nice though.
Comment #2
will kirchheimerYes.. takes some effort:
In your content type, where you added field you are multi-selecting against
select default value
select phpcode
and then enter and array that is appropriate:
I only need one value, and generate it via my own function return_current_users_showhost_id()(which returns a simple numeric value) like so:
return array(0 => array('nid' => return_current_users_showhost_id()));
Comment #3
attheshow commented