You are here

function asset_widget_init in Asset 7

Implements hook_init().

File

modules/asset_widget/asset_widget.module, line 45
Code for the Asset widget module.

Code

function asset_widget_init() {

  // Add special setting to detect in-frame forms.
  if (asset_widget_in_frame_form()) {
    drupal_add_js(array(
      'assetWidget' => array(
        'assetFrame' => TRUE,
      ),
    ), 'setting');
  }
}