diff options
Diffstat (limited to 'kolab.org/www/drupal-7.15/sites/all/modules/views/handlers/views_handler_area_text.inc')
-rw-r--r-- | kolab.org/www/drupal-7.15/sites/all/modules/views/handlers/views_handler_area_text.inc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/handlers/views_handler_area_text.inc b/kolab.org/www/drupal-7.15/sites/all/modules/views/handlers/views_handler_area_text.inc index 2b9adb3..d772786 100644 --- a/kolab.org/www/drupal-7.15/sites/all/modules/views/handlers/views_handler_area_text.inc +++ b/kolab.org/www/drupal-7.15/sites/all/modules/views/handlers/views_handler_area_text.inc @@ -2,20 +2,21 @@ /** * @file - * Contains views_handler_area_text handler. + * Definition of views_handler_area_text. */ /** * Views area text handler. - * @ingroup views_area_handlers Views' area handlers -*/ + * + * @ingroup views_area_handlers + */ class views_handler_area_text extends views_handler_area { function option_definition() { $options = parent::option_definition(); $options['content'] = array('default' => '', 'translatable' => TRUE, 'format_key' => 'format'); $options['format'] = array('default' => NULL); - $options['tokenize'] = array('default' => FALSE); + $options['tokenize'] = array('default' => FALSE, 'bool' => TRUE); return $options; } @@ -30,7 +31,7 @@ class views_handler_area_text extends views_handler_area { '#wysiwyg' => FALSE, ); - + // @TODO: Refactor token handling into a base class. $form['tokenize'] = array( '#type' => 'checkbox', '#title' => t('Use replacement tokens from the first row'), @@ -50,7 +51,7 @@ class views_handler_area_text extends views_handler_area { } if (!empty($options)) { - $output = '<p>' . t('The following tokens are available. If you would like to have the characters %5B and %5D please use the html entity codes \'%5B\' or \'%5D\' or they will get replaced with empty space.)' . '</p>'); + $output = '<p>' . t('The following tokens are available. If you would like to have the characters \'[\' and \']\' please use the html entity codes \'%5B\' or \'%5D\' or they will get replaced with empty space.' . '</p>'); foreach (array_keys($options) as $type) { if (!empty($options[$type])) { $items = array(); @@ -106,5 +107,4 @@ class views_handler_area_text extends views_handler_area { return check_markup($value, $format, '', FALSE); } } - } |