function modalframe_example_get_item in Modal Frame API 7
Same name and namespace in other branches
- 6 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 93 - 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);
}