You are here

function casetracker_block_jump_to_case_number in Case Tracker 5

Same name and namespace in other branches
  1. 6 casetracker.module \casetracker_block_jump_to_case_number()
  2. 7 casetracker.module \casetracker_block_jump_to_case_number()

Form builder for "Jump to case number" block.

1 string reference to 'casetracker_block_jump_to_case_number'
casetracker_block in ./casetracker.module
Implementation of hook_block().

File

./casetracker.module, line 1155
Enables the handling of projects and their cases.

Code

function casetracker_block_jump_to_case_number() {
  $form = array();
  $form['case_number'] = array(
    '#maxlength' => 60,
    // class makes it all one line.
    '#prefix' => '<div class="container-inline">',
    '#required' => TRUE,
    '#size' => 15,
    '#title' => t('Case number'),
    '#type' => 'textfield',
  );
  $form['submit'] = array(
    '#suffix' => '</div>',
    '#type' => 'submit',
    '#value' => t('Go'),
  );
  return $form;
}