| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: coder.inc,v 1.1.2.2.2.1 2008/11/21 22:54:27 jeffcd Exp $ 3 4 /** 5 * @file 6 * Coder plugin for the YUI Editor. 7 */ 8 9 function yui_editor_coder_settings(&$form, &$profile) { 10 $form['plugins']['coder'] = array( 11 '#type' => 'checkbox', 12 '#title' => t('Coder button'), 13 '#default_value' => $profile['coder'], 14 '#description' => t('Add the code viewing button to the toolbar. Note: This does not work with the Plaintext button. Choose one of them only.'), 15 ); 16 } 17 18 function yui_editor_coder_render(&$profile) { 19 if ($profile['coder'] == 1) { 20 drupal_add_js(drupal_get_path('module', 'yui_editor') .'/plugins/coder.js', 'module', 'footer'); 21 drupal_add_css(drupal_get_path('module', 'yui_editor') .'/plugins/coder.css'); 22 } 23 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |