You are here

function asset_widget_add_to_page in Asset 7

Static flag to indicate should we add widget to page or not. Attaching widget see in hook_page_alter().

2 calls to asset_widget_add_to_page()
asset_widget_page_alter in modules/asset_widget/asset_widget.module
Implements hook_page_alter().
_asset_widget_element_attach_asset_widget in modules/asset_widget/asset_widget.module
Attach asset widget form to element.

File

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

Code

function asset_widget_add_to_page($set = NULL) {
  static $add_to_page = FALSE;
  if (isset($set)) {
    $add_to_page = $set;
  }
  return $add_to_page;
}