You are here

function tbl in Asset 6

Same name and namespace in other branches
  1. 5.2 asset_wizard.module \tbl()

Wrapper for l() function to add thickbox class and query params

10 calls to tbl()
asset_search_wizard_recent_searches in contrib/asset_search/asset_search.module
asset_wizard_get_path in ./asset_wizard.module
asset_wizard_main in ./asset_wizard.module
asset_wizard_set_breadcrumb in ./asset_wizard.module
Set breadcrumb based on asset heirarchy
theme_asset_directory_browse in ./asset.types.inc

... See full list

File

./asset_wizard.module, line 665
Wizard-style interface for Asset.

Code

function tbl($text, $path, $attributes = array(), $query = NULL, $fragment = NULL, $absolute = FALSE, $html = FALSE) {
  if (isset($attributes['class'])) {
    $attributes['class'] .= ' thickbox';
  }
  else {
    $attributes['class'] = 'thickbox';
  }
  if (!isset($attributes['title'])) {
    $attributes['title'] = t('Asset Wizard');
  }
  if ($_GET['return']) {
    $query .= ($query ? '&' : '') . 'return=' . $_GET['return'];
    if ($_GET['config']) {
      $query .= '&config=' . $_GET['config'];
    }
  }
  $query .= '&height=400&width=560&modal=true';
  return l($text, $path, $attributes, $query, $fragment, $absolute, $html);
}