You are here

function module_builder_build_new in Module Builder 6

Menu callback; form to create a new module

1 string reference to 'module_builder_build_new'
module_builder_menu in ./module_builder.module
Implementation of hook_menu().

File

./module_builder.pages.inc, line 28

Code

function module_builder_build_new() {
  $form = array();
  $form['title'] = array(
    '#type' => 'textfield',
    '#title' => t('Title'),
    '#description' => t('The title of the module (not the machine-readable name).'),
    '#size' => 40,
    '#maxlength' => 255,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Submit'),
  );
  return $form;
}