You are here

function modalframe_example_get_item in Modal Frame API 6

Same name and namespace in other branches
  1. 7 modules/modalframe_example/modalframe_example.module \modalframe_example_get_item()

Helper function to build links to each example from the main examples page.

1 call to modalframe_example_get_item()
modalframe_example_page in modules/modalframe_example/modalframe_example.module
Menu callback; Generate the parent window, from where all examples are available.

File

modules/modalframe_example/modalframe_example.module, line 88
Example for the Modal Frame module.

Code

function modalframe_example_get_item($title, $path, $size = NULL) {
  $options = array(
    'attributes' => array(
      'class' => 'modalframe-example-child' . (!empty($size) ? ' modalframe-example-size[' . $size . ']' : ''),
    ),
  );
  return l($title, $path, $options);
}