The part that I use above is sticking with code ethics basically, it saves on lines of code per file and does the same exact thing as this does:
PHP Code:
$globaltemplates = array(
'newpost_disablesmiliesoption',
'newpost_usernamecode',
'editor_toolbar_on',
'editor_clientscript',
'editor_jsoptions_font',
'editor_jsoptions_size',
'editor_smilie',
'editor_smiliebox',
'editor_smiliebox_row',
'editor_smiliebox_straggler',
'editor_css',
'editor_smilie_category',
'editor_smilie_row',
'editor_toolbar_colors',
'editor_toolbar_fontname',
'editor_toolbar_fontsize',
'bbcode_code_printable',
'bbcode_html_printable',
'bbcode_php_printable',
'bbcode_quote_printable',
'bbcode_code',
'bbcode_html',
'bbcode_php',
'bbcode_quote',
'bbcode_video',
);
Just one line of code instead of 10-15 lines to call all those templates.
In all honesty, you don't have to call these templates as you have done:
PHP Code:
'bbcode_code_printable',
'bbcode_html_printable',
'bbcode_php_printable',
'bbcode_quote_printable',
'bbcode_code',
'bbcode_html',
'bbcode_php',
'bbcode_quote',
'bbcode_video',
From what I have learned is that each one of those templates is already cached and called when you use the editor.