You are here

function theme_asset_textarea_link in Asset 5

Same name and namespace in other branches
  1. 6 inc/asset.themes.inc \theme_asset_textarea_link()

Theme the textarea link

1 theme call to theme_asset_textarea_link()
asset_textarea in ./asset.module
The #process callback function for the textareas

File

./asset.module, line 1092

Code

function theme_asset_textarea_link($element) {
  $link = l(t('Insert Assets'), 'asset/wizard/textarea', array(
    'class' => 'asset-textarea-link',
    'id' => 'asset-link-' . $element['#id'],
    'onclick' => "window.open(this.href, 'asset_textarea_link', 'width=614,height=400,scrollbars=yes,status=yes,resizable=yes,toolbar=no,menubar=no'); return false",
  ), 'textarea=' . $element['#name']);
  $output .= '<div>' . $link . '</div>';
  return $output;
}