Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I came across a peculiar problem when creating forms using the forms api
my form has the following select element
(
[#required] =>
[#attributes] => Array
(
[class] => form-select
)
[#description] =>
[#input] => 1
[#name] => region
[#value] => 0
[#id] => edit-region
[#processed] =>
[#weight] => 0.001
[#options] => Array
(
[0] => None
[N] => Select Multiple
[P] => Select All
[1] => North America
[10] => South America
[2] => Asia
[3] => Africa
[4] => Europe
[5] => Latin America
[6] => Pacific
[7] => Polar
[8] => Caribbean
[9] => Central America & Mexico
)
[#default_value] => 0
[#title] => Destination Region
[#post] => Array
(
)
[#programmed] =>
[#parents] => Array
(
[0] => region
)
[#tree] =>
[#type] => select
)
as seen from above the default_value is supposed to the option[0] but when i render the form i get the options 0, M and N as selected options.
This is a serious bug. i'm using drupal-5.0-rc1. Has anyone seen this issue before ?
I want to do some callbacks in a module and I would just use a method like autocomplete, but I am wondering:
Does an autocomplete, like any on the ones on drupal.org, require a full bootstrap?
If so, isn't that a little excessive?
If not, then can anyone fill me in on best practice in this respect?
I am using the newest version pearwiki + mediawiki (pearwiki_filter-5.x-1.0.tar.gz or pearwiki_filter-5.x-1.x-dev.tar.gz), and only this filter used. But i cannot get the correct table.