You are here

function theme_asset_textarea_link in Asset 6

Same name and namespace in other branches
  1. 5 asset.module \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

inc/asset.themes.inc, line 70

Code

function theme_asset_textarea_link($element) {
  $link = l(t('Insert Assets'), 'asset/wizard/textarea', array(
    'query' => 'textarea=' . $element['#name'],
    'attributes' => 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",
    ),
  ));
  $output = '<div>' . $link . '</div>';
  return $output;
}