You are here

function hook_outline_designer_form_overlay in Outline Designer 7.2

Implementation of hook_outline_designer_form_overlay().

1 function implements hook_outline_designer_form_overlay()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

outline_designer_book_outline_designer_form_overlay in modules/outline_designer_book/outline_designer_book.module
Implements hook_outline_designer_form_overlay().
1 invocation of hook_outline_designer_form_overlay()
_outline_designer_book_admin_form_alter in modules/outline_designer_book/outline_designer_book.module
Helper to allow other sub-sub projects to implement this

File

./outline_designer.api.php, line 43

Code

function hook_outline_designer_form_overlay() {

  // an example output of elements for use in the overlay
  // try and wrap things in a div at the end like this function does
  // class name helps with theming, id helps with targetting to render
  // delete form
  $form['od_hidden_nodes_multiple'] = array(
    '#title' => t('Propagate hidden status'),
    '#id' => 'od_hidden_nodes_multiple',
    '#type' => 'checkbox',
    '#description' => t('Should this status be applied to all child content?'),
    '#weight' => 0,
    '#default_value' => TRUE,
  );

  // hidden status
  $form['od_hidden_nodes_status'] = array(
    '#title' => t('Hide content'),
    '#id' => 'od_hidden_nodes_status',
    '#type' => 'checkbox',
    '#description' => t('Hide this content'),
    '#weight' => 0,
    '#default_value' => FALSE,
  );
  $output = '<div id="od_hidden_nodes" class="od_uiscreen">' . drupal_render($form) . '</div>';
  return $output;
}