// Make sure to append to #suffix so it isn't completely overwritten
$element['#suffix'] .= $wysiwyg_link;
}
+ }
+ else {
+ $element['#resizable'] = TRUE;
}
return $element;
break;
}
- /*
- // Example, add some extra features when using the advanced theme.
- switch ($theme_name) {
- case 'advanced':
- $init['extended_valid_elements'] = array('a[href|target|name|title|onclick]');
- break;
+ /* Example, add some extra features when using the advanced theme.
+
+ // If $init is available, we can extend it
+ if (isset($init)) {
+ switch ($theme_name) {
+ case 'advanced':
+ $init['extended_valid_elements'] = array('a[href|target|name|title|onclick]');
+ break;
+ }
}
+
*/
- // Always return $init; !!
+ // Always return $init
return $init;
}