Elakadtam egy modul írása közben, mert nem generálódik le normálisan egy form az alábbi tömbből:
Array
(
[mytinymce2__visibility] => Array
(
[#type] => fieldset
[#title] => Visibility
[#weight] => 0
[#collapsible] => 1
[#collapsed] =>
[mytinymce2__visibility_rule] => Array
(
[#type] => radios
[#title] => Convert elements to TinyMCE editor instances
[#weight] => 0
[#options] => Array
(
[0] => on every page except the below listed pages.
[1] => on only the below listed pages.
)
[#default_value] => 1
)
[mytinymce2__visibility_pages] => Array
(
[#type] => textarea
[#title] => Pages
[#weight] => 1
[#default_value] => node/*
user/*
comment/*
[#description] => Enter one page per line as Drupal paths. The '*' character is a wildcard. Example paths are '<em>blog</em>' for the blog page and <em>blog/*</em> for every personal blog. <em><front></em> is the front page. If the PHP-mode is chosen, enter PHP code between . Note that executing incorrect PHP-code can break your Drupal site.
)
[mytinymce2__visibility_elements] => Array
(
[#type] => textarea
[#title] => Elements to be convert
[#weight] => 2
[#description] => Enables you to specify a comma seperated list of element's ids which will be rendered using this profile. These elements can be any kind for example textareas or divs.
[#default_value] => edit-log,
edit-body
)
)
[mytinymce2__submit1] => Array
(
[#type] => submit
[#value] => Save the profile's modifications...
[#weight] => 10001
)
)
az alábbi kóddal (ahol a $form
változóban van a fenti tömb):
$result = drupal_get_form("mytinymce2__form",$form);
Hol van a probléma, mert én nem jöttem rá?