You are here

function asset_get_full_content in Asset 7

Page callback, return html of full asset.

1 string reference to 'asset_get_full_content'
asset_menu in ./asset.module
Implements hook_menu().

File

includes/asset.admin.inc, line 552
Asset admin page callbacks.

Code

function asset_get_full_content() {
  $content = '';
  if (isset($_REQUEST['tag']) && !empty($_REQUEST['tag'])) {
    $tag = $_REQUEST['tag'];
    $matches = assets_filter_get_matches($tag);
    if (!empty($matches)) {
      $match = reset($matches);
      $asset = asset_load($match[2]);
      $content .= assets_render_by_tag($asset, $match[3], FALSE);
    }
  }
  return $content;
}