function img_assist_textarea in Image Assist 6
Same name and namespace in other branches
- 5.3 img_assist.module \img_assist_textarea()
- 5 img_assist.module \img_assist_textarea()
- 5.2 img_assist.module \img_assist_textarea()
- 6.2 img_assist.module \img_assist_textarea()
Add image link underneath textareas.
1 string reference to 'img_assist_textarea'
- img_assist_elements in ./
img_assist.module - Implementation of hook_elements().
File
- ./
img_assist.module, line 150 - Image Assist module
Code
function img_assist_textarea($element) {
$link = variable_get('img_assist_link', 'icon');
if ($link == 'icon' || $link == 'text') {
if (_img_assist_textarea_match($element['#id']) && _img_assist_page_match() && !strstr($_GET['q'], 'img_assist')) {
if (user_access('access img_assist')) {
$output = theme('img_assist_textarea_link', $element, $link);
$element['#suffix'] = isset($element['#suffix']) ? $element['#suffix'] . $output : $output;
}
}
}
return $element;
}