Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function function2() {
- return array(
- form => drupal_get_form('mymodule_form'),
- html => mymodule_html(),
- );
- }
- function mymodule_form() {
- $form['offert'] = array(
- '#title' => t('Legend'),
- '#type' => 'fieldset'
- );
- $form['offert']['name'] = array(
- '#type' => 'textfield',
- '#title' => t('Name'),
- '#default_value' => t('Your name'),
- '#size' => 60,
- '#maxlength' => 64
- );
- $form['offert']['submit'] = array(
- '#type' => 'submit',
- '#value' => t('Submit')
- );
- return $form;
- }
- function mymodule_html() {
- $html = "Some HTML";
- return $html;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement