Skip to main content
8 events
when toggle format what by license comment
Mar 23, 2012 at 18:47 comment added dragonmantank It's a bug in the example, the syntax in the file is correct.
Mar 23, 2012 at 17:34 comment added Clive I just popped your code into a text editor and you have a syntax error...in mymodule_form the line if(!empty($form_state['page_num'] && $form_state['page_num'] == 2) { is missing a closing parenthesis on the empty statement. Is that just a mistake in the question or could it be causing your problem?
Mar 23, 2012 at 16:49 comment added dragonmantank Yes, I cleared the cache and even disabled/enabled the module. No change.
Mar 23, 2012 at 16:37 comment added Clive Ah ok, good to know thanks. Have you tried clearing the caches?
Mar 23, 2012 at 16:07 comment added dragonmantank I've seen it both ways. It looks like $form is empty when it comes into the builder function, but I changed it from the straight return and still not getting the theme stuff called.
Mar 23, 2012 at 15:56 comment added Clive Yep, that's the way it's done throughout Drupal core and contrib modules (and they way I've always done it) so I think it's definitely the right way to go
Mar 23, 2012 at 15:55 comment added dragonmantank mymodule_form_one contains the entire form definition, so should I not initialize $form to an array and then define it, I should just use $form right away?
Mar 23, 2012 at 15:49 history answered Clive CC BY-SA 3.0