You are here

function simple_modal_overlay_example in Simple modal overlay 7

A sample of how to invoke a simple modal overlay.

File

./simple_modal_overlay.api.php, line 17
This file contains no working PHP code; it exists to provide additional documentation for doxygen as well as to document the Simple modal overlay API in the standard Drupal manner.

Code

function simple_modal_overlay_example() {
  simple_modal_overlay_show(t("The title of my message"), array(
    '#type' => 'fieldset',
    '#title' => t('My fieldset'),
    '#collapsible' => TRUE,
    '#collapsed' => FALSE,
    'content' => array(
      '#type' => 'markup',
      '#markup' => "The content of my message.",
    ),
  ));
}