You are here

function _modalframe_insert_after_first_element in Modal Frame API 7

Helper function for modalframe_theme_registry_alter()

Alters order of elements in theme paths array.

Parameters

array $a:

array $element:

1 call to _modalframe_insert_after_first_element()
modalframe_theme_registry_alter in ./modalframe.module
Implementation of hook_theme_registry_alter().

File

./modalframe.module, line 77
Provides an API to render an iframe within a modal dialog based on the jQuery UI Dialog plugin.

Code

function _modalframe_insert_after_first_element(&$a, $element) {
  if (is_array($a)) {
    $first_element = array_shift($a);
    array_unshift($a, $first_element, $element);
  }
}