You are here

function casetracker_block_jump_to_case_number in Case Tracker 6

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

Form 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 492
Enables the handling of projects and their cases.

Code

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