Closed (fixed)
Project:
Nodequeue
Version:
7.x-2.0-alpha2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Jan 2010 at 09:27 UTC
Updated:
11 Oct 2011 at 11:13 UTC
HI, all.
I want change textfield in form add nodequeue:
$form['add']['nid'] = array(
'#type' => 'select',
'#autocomplete_path' => 'nodequeue/autocomplete/'. $subqueue->sqid,
'#default_value' => 'Enter the title of a node to add it to the queue',
);
to
$sql = db_query_range('SELECT nid, title FROM {node} WHERE 1 ORDER BY created', 0 , 30);
$option = array();
while ($db = db_fetch_object($sql)) {
$option[$db->nid] = $db->title;
}
$form['add']['nid'] = array(
'#type' => 'select',
// '#autocomplete_path' => 'nodequeue/autocomplete/'. $subqueue->sqid,
'#options' => $option,
'#default_value' => 'Enter the title of a node to add it to the queue',
);
but when i add to node queue not work
Comments
Comment #1
cuxi commentedhi. i have code function submit to
now it's works
Comment #2
ezra-g commentedSounds like you figured this out. Marking as fixed :)!
Comment #4
andersthorborg commentedI implemented this feature to work with D7. I'm a drupal newbie, and I don't know how to create a patch. However this solved my needs:
Replace
with
And replace the submit function with this:
Feel free to tighten it up - this works for me with 7.x-2.0-alpha2.