You are here

function markup_elements in Markup 6

Implements hook FAPI hook_elements().

Any FAPI callbacks needed for individual widgets can be declared here, and the element will be passed to those callbacks for processing.

Drupal will automatically theme the element using a theme with the same name as the hook_elements key.

File

./markup.module, line 126
Defines a field type for displaying markup on the node/edit form.

Code

function markup_elements() {
  return array(
    'markup_widget' => array(
      '#input' => TRUE,
      '#process' => array(
        'markup_widget_process',
      ),
    ),
    'markup_element' => array(
      '#input' => TRUE,
      '#process' => array(
        'markup_element_process',
      ),
    ),
  );
}