Projet

Général

Profil

Révision 5d12d676

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/views/handlers/views_handler_area_text_custom.inc
12 12
 */
13 13
class views_handler_area_text_custom extends views_handler_area_text {
14 14

  
15
  function option_definition() {
15
  /**
16
   * {@inheritdoc}
17
   */
18
  public function option_definition() {
16 19
    $options = parent::option_definition();
17 20
    unset($options['format']);
18 21
    return $options;
19 22
  }
20 23

  
21
  function options_form(&$form, &$form_state) {
24
  /**
25
   * {@inheritdoc}
26
   */
27
  public function options_form(&$form, &$form_state) {
22 28
    parent::options_form($form, $form_state);
23 29

  
24 30
    // Alter the form element, to be a regular text area.
......
26 32
    unset($form['content']['#format']);
27 33
    unset($form['content']['#wysiwyg']);
28 34

  
29
    // @TODO: Use the token refactored base class.
35
    // @todo Use the token refactored base class.
30 36
  }
31 37

  
32
  // Empty, so we don't inherit options_submit from the parent.
33
  function options_submit(&$form, &$form_state) {
38
  /**
39
   * {@inheritdoc}
40
   */
41
  public function options_submit(&$form, &$form_state) {
42
    // Empty, so we don't inherit options_submit from the parent.
34 43
  }
35 44

  
36
  function render($empty = FALSE) {
45
  /**
46
   * {@inheritdoc}
47
   */
48
  public function render($empty = FALSE) {
37 49
    if (!$empty || !empty($this->options['empty'])) {
38 50
      return $this->render_textarea_custom($this->options['content']);
39 51
    }
......
43 55

  
44 56
  /**
45 57
   * Render a text area with filter_xss_admin.
58
   *
59
   * @param string $value
60
   *   The text area string to process.
61
   *
62
   * @return string
63
   *   The string after it has been sanitized, optionally tokenized too.
46 64
   */
47
  function render_textarea_custom($value) {
65
  public function render_textarea_custom($value) {
48 66
    if ($value) {
49 67
      if ($this->options['tokenize']) {
50 68
        $value = $this->view->style_plugin->tokenize_value($value, 0);

Formats disponibles : Unified diff