[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/yui_editor/plugins/ -> resize.inc (source)

   1  <?php
   2  // $Id: resize.inc,v 1.1.2.2.2.1 2008/11/21 22:54:27 jeffcd Exp $
   3  
   4  /**
   5   * @file
   6   * Resize plugin for the YUI Editor.
   7   */
   8  
   9  function yui_editor_resize_settings(&$form, &$profile) {
  10    $form['plugins']['resize'] = array(
  11      '#type' => 'checkbox',
  12      '#title' => t('Resize'),
  13      '#default_value' => $profile['resize'],
  14      '#description' => t('Allow user to resize the editor'),
  15    );
  16  }
  17  
  18  function yui_editor_resize_render(&$profile) {
  19    if ($profile['resize'] == 1) {
  20      drupal_add_js(drupal_get_path('module', 'yui_editor') .'/plugins/resize.js', 'module', 'footer');
  21    }
  22  }


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7