You are here

function markup_view_elements in Markup 6

Implements 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

contrib/markup_view/markup_view.module, line 120
Defines a field type for displaying a view on the node/edit form.

Code

function markup_view_elements() {
  return array(
    'markup_view' => array(
      '#input' => TRUE,
      '#process' => array(
        'markup_view_process',
      ),
    ),
  );
}