| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: plaintext.inc,v 1.1.2.2.2.1 2008/11/21 22:54:27 jeffcd Exp $ 3 4 /** 5 * @file 6 * PLaintext plugin for the YUI Editor. 7 */ 8 9 function yui_editor_plaintext_settings(&$form, &$profile) { 10 $form['plugins']['plaintext'] = array( 11 '#type' => 'checkbox', 12 '#title' => t('Plaintext button'), 13 '#default_value' => $profile['plaintext'], 14 '#description' => t('Allow user to switch between plain text area and YUI editor'), 15 ); 16 } 17 18 function yui_editor_plaintext_render(&$profile) { 19 if ($profile['plaintext'] == 1) { 20 drupal_add_js(drupal_get_path('module', 'yui_editor') .'/plugins/plaintext.js', 'module', 'footer'); 21 } 22 }
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 |