You are here

function forena_element_info in Forena Reports 8

Same name and namespace in other branches
  1. 7.5 forena.module \forena_element_info()
  2. 7.4 forena.module \forena_element_info()

Create a derivative to the machine name field with relaxed restrictions.

Return value

multitype:boolean string NULL number multitype:string

File

./forena.module, line 801

Code

function forena_element_info() {
  $types['forena_machine_name'] = array(
    '#input' => TRUE,
    '#element_validate' => array(
      'forena_machine_name_validate',
    ),
    '#default_value' => NULL,
    '#size' => 60,
    '#maxlength' => 64,
    '#required' => TRUE,
    '#autocomplete_path' => FALSE,
    '#process' => array(
      'form_process_machine_name',
      'forena_process_machine_name',
      'ajax_process_form',
    ),
    '#theme_wrappers' => array(
      'form_element',
    ),
    '#theme' => 'textfield',
  );
  return $types;
}