You are here

function _office_hours_elements in Office Hours 6

Same name and namespace in other branches
  1. 6.2 office_hours.elements.inc \_office_hours_elements()

Implementation of hook_elements().

1 call to _office_hours_elements()
office_hours_elements in ./office_hours.module
Implementation of FAPI hook_elements().

File

./office_hours.elements.inc, line 13
office_hours.elements.inc Office hours form elements and their theming and validation. This file is only included during the edit process to reduce memory usage.

Code

function _office_hours_elements() {
  return array(
    'office_hours' => array(
      '#input' => TRUE,
      '#tree' => TRUE,
      '#columns' => array(
        'day',
        'starthours',
        'endhours',
      ),
      '#process' => array(
        'office_hours_field_process',
      ),
      '#element_validate' => array(
        'office_hours_field_validate',
      ),
    ),
    'office_hours_select' => array(
      '#input' => TRUE,
      '#tree' => TRUE,
      '#process' => array(
        'office_hours_select_process',
      ),
      '#element_validate' => array(
        'office_hours_select_validate',
      ),
    ),
  );
}