Search "comment_body" (107 hits in 16 files) drupal\core\modules\comment\comment.admin.inc (1 hits) Line 114: '#options' => array('attributes' => array('title' => truncate_utf8($comment->comment_body[LANGUAGE_NOT_SPECIFIED][0]['value'], 128)), 'fragment' => 'comment-' . $comment->cid), drupal\core\modules\comment\comment.install (3 hits) Line 12: // Delete comment_body field. Line 13: field_delete_field('comment_body'); Line 77: _comment_body_field_create($info); drupal\core\modules\comment\comment.module (15 hits) Line 338: _comment_body_field_create($info); Line 370: * Creates a comment_body field instance for a given node type. Line 377: function _comment_body_field_create($info) { Line 379: if (!field_read_field('comment_body', array('include_inactive' => TRUE))) { Line 381: 'field_name' => 'comment_body', Line 388: if (!field_read_instance('comment', 'comment_body', 'comment_node_' . $info->type, array('include_inactive' => TRUE))) { Line 392: 'field_name' => 'comment_body', Line 1900: $comment->format = $comment->comment_body[LANGUAGE_NOT_SPECIFIED][0]['format']; Line 2014: $comment_body = $comment->comment_body[LANGUAGE_NOT_SPECIFIED][0]; Line 2014: $comment_body = $comment->comment_body[LANGUAGE_NOT_SPECIFIED][0]; Line 2015: if (isset($comment_body['format'])) { Line 2016: $comment_text = check_markup($comment_body['value'], $comment_body['format']); Line 2016: $comment_text = check_markup($comment_body['value'], $comment_body['format']); Line 2019: $comment_text = check_plain($comment_body['value']); Line 2487: 'comment_body' => array( drupal\core\modules\comment\comment.test (39 hits) Line 39: $edit['comment_body[' . $langcode . '][0][value]'] = $comment; Line 457: 'comment_body' => array(LANGUAGE_NOT_SPECIFIED => array($this->randomName())), Line 504: 'comment_body' => array(LANGUAGE_NOT_SPECIFIED => array($this->randomName())), Line 784: 'comment_body' => array(LANGUAGE_NOT_SPECIFIED => array($this->randomName())), Line 994: $edit['comment_body[' . $langcode . '][0][value]'] = $this->randomName(16); Line 1000: $this->assertText($edit['comment_body[' . $langcode . '][0][value]'], t('Comment displayed.')); Line 1004: $this->assertFieldByName('comment_body[' . $langcode . '][0][value]', $edit['comment_body[' . $langcode . '][0][value]'], t('Comment field displayed.')); Line 1004: $this->assertFieldByName('comment_body[' . $langcode . '][0][value]', $edit['comment_body[' . $langcode . '][0][value]'], t('Comment field displayed.')); Line 1027: $edit['comment_body[' . $langcode . '][0][value]'] = $this->randomName(16); Line 1033: $comment = $this->postComment($this->node, $edit['subject'], $edit['comment_body[' . $langcode . '][0][value]'], TRUE); Line 1039: $this->assertText($edit['comment_body[' . $langcode . '][0][value]'], t('Comment displayed.')); Line 1045: $this->assertFieldByName('comment_body[' . $langcode . '][0][value]', $edit['comment_body[' . $langcode . '][0][value]'], t('Comment field displayed.')); Line 1045: $this->assertFieldByName('comment_body[' . $langcode . '][0][value]', $edit['comment_body[' . $langcode . '][0][value]'], t('Comment field displayed.')); Line 1056: $this->assertFieldByName('comment_body[' . $langcode . '][0][value]', $edit['comment_body[' . $langcode . '][0][value]'], t('Comment field displayed.')); Line 1056: $this->assertFieldByName('comment_body[' . $langcode . '][0][value]', $edit['comment_body[' . $langcode . '][0][value]'], t('Comment field displayed.')); Line 1063: $displayed['comment_body[' . $langcode . '][0][value]'] = (string) current($this->xpath("//textarea[@id='edit-comment-body-" . $langcode . "-0-value']")); Line 1071: $this->assertEqual($comment_loaded->comment_body[$langcode][0]['value'], $edit['comment_body[' . $langcode . '][0][value]'], t('Comment body loaded.')); Line 1071: $this->assertEqual($comment_loaded->comment_body[$langcode][0]['value'], $edit['comment_body[' . $langcode . '][0][value]'], t('Comment body loaded.')); Line 1136: "comment_body[$langcode][0][value]" => $this->randomName(), Line 1203: $this->assertNoFieldByName("comment_body[$langcode][0][value]", '', t('Comment field not found.')); Line 1223: $this->assertFieldByName("comment_body[$langcode][0][value]", '', t('Comment field found.')); Line 1894: $instance = field_info_instance('comment', 'body', 'comment_body'); Line 1904: $tests['[comment:body]'] = _text_sanitize($instance, LANGUAGE_NOT_SPECIFIED, $comment->comment_body[LANGUAGE_NOT_SPECIFIED][0], 'value'); Line 1930: $tests['[comment:body]'] = $comment->comment_body[LANGUAGE_NOT_SPECIFIED][0]['value']; Line 2037: * Tests that the default 'comment_body' field is correctly added. Line 2044: // Check that the 'comment_body' field is present on all comment bundles. Line 2047: $this->assertTrue(isset($instances['comment_node_' . $type_name]['comment_body']), t('The comment_body field is present for comments on type @type', array('@type' => $type_name))); Line 2047: $this->assertTrue(isset($instances['comment_node_' . $type_name]['comment_body']), t('The comment_body field is present for comments on type @type', array('@type' => $type_name))); Line 2050: field_delete_instance($instances['comment_node_' . $type_name]['comment_body']); Line 2053: // Check that the 'comment_body' field is deleted. Line 2054: $field = field_info_field('comment_body'); Line 2055: $this->assertTrue(empty($field), t('The comment_body field was deleted')); Line 2061: // Check that the 'comment_body' field exists and has an instance on the Line 2063: $field = field_info_field('comment_body'); Line 2064: $this->assertTrue($field, t('The comment_body field exists')); Line 2066: $this->assertTrue(isset($instances['comment_node_' . $type_name]['comment_body']), t('The comment_body field is present for comments on type @type', array('@type' => $type_name))); Line 2066: $this->assertTrue(isset($instances['comment_node_' . $type_name]['comment_body']), t('The comment_body field is present for comments on type @type', array('@type' => $type_name))); Line 2120: $this->drupalPost('admin/structure/types/manage/article/comment/fields/comment_body', $edit, t('Save settings')); Line 2124: $edit = array('comment_body[und][0][value]' => $this->randomName(8)); drupal\core\modules\comment\comment.tokens.inc (3 hits) Line 158: if ($items = field_get_items('comment', $comment, 'comment_body', $langcode)) { Line 159: $instance = field_info_instance('comment', 'body', 'comment_body'); Line 160: $field_langcode = field_language('comment', $comment, 'comment_body', $langcode); drupal\core\modules\file\tests\file.test (2 hits) Line 584: 'comment_body[' . LANGUAGE_NOT_SPECIFIED . '][0][value]' => $comment_body = $this->randomName(), Line 584: 'comment_body[' . LANGUAGE_NOT_SPECIFIED . '][0][value]' => $comment_body = $this->randomName(), drupal\core\modules\forum\forum.test (1 hits) Line 159: $edit['comment_body[' . LANGUAGE_NOT_SPECIFIED . '][0][value]'] = $this->randomName(); drupal\core\modules\locale\locale.test (1 hits) Line 2880: $edit = array("comment_body[$langcode_not_specified][0][value]" => $this->randomName()); drupal\core\modules\node\node.test (1 hits) Line 2459: 'comment_body' => array( drupal\core\modules\rdf\rdf.api.php (1 hits) Line 66: 'comment_body' => array( drupal\core\modules\rdf\rdf.test (3 hits) Line 574: $comment_body = $this->xpath('//div[contains(@class, "comment") and contains(@typeof, "sioct:Comment")]//div[@class="content"]//div[contains(@class, "comment-body")]//div[@property="content:encoded"]'); Line 575: $this->assertEqual((string)$comment_body[0]->p, $comment->comment, t("RDFa markup for the comment body found.")); Line 672: 'comment_body[' . LANGUAGE_NOT_SPECIFIED . '][0][value]' => $this->randomName(), drupal\core\modules\search\search.test (14 hits) Line 444: $edit['comment_body[' . LANGUAGE_NOT_SPECIFIED . '][0][value]'] = 'some random comment'; Line 771: $comment_body = 'Test comment body'; Line 793: $edit_comment['comment_body[' . LANGUAGE_NOT_SPECIFIED . '][0][value]'] = '

' . $comment_body . '

'; Line 793: $edit_comment['comment_body[' . LANGUAGE_NOT_SPECIFIED . '][0][value]'] = '

' . $comment_body . '

'; Line 795: $edit_comment['comment_body[' . LANGUAGE_NOT_SPECIFIED . '][0][format]'] = $full_html_format_id; Line 812: 'search_block_form' => "'" . $comment_body . "'", Line 818: $this->assertText($comment_body, t('Comment body text found in search results.')); Line 820: $this->assertNoRaw(check_plain($edit_comment['comment_body[' . LANGUAGE_NOT_SPECIFIED . '][0][value]']), t('HTML in comment body is not escaped.')); Line 833: $this->assertNoText($comment_body, t('Comment body text not found in search results.')); Line 840: $comment_body = 'Test comment body'; Line 853: $edit_comment['comment_body[' . LANGUAGE_NOT_SPECIFIED . '][0][value]'] = '

' . $comment_body . '

'; Line 853: $edit_comment['comment_body[' . LANGUAGE_NOT_SPECIFIED . '][0][value]'] = '

' . $comment_body . '

'; Line 1067: $edit_comment['comment_body[' . LANGUAGE_NOT_SPECIFIED . '][0][value]'] = $this->randomName(); Line 1069: $edit_comment['comment_body[' . LANGUAGE_NOT_SPECIFIED . '][0][format]'] = $filtered_html_format_id; drupal\core\modules\simpletest\tests\upgrade\drupal-7.language.database.php (14 hits) Line 891: db_insert('field_data_comment_body')->fields(array( Line 899: 'comment_body_value', Line 900: 'comment_body_format', Line 910: 'comment_body_value' => 'Comment body', Line 911: 'comment_body_format' => 'filtered_html', Line 921: 'comment_body_value' => 'Second comment body', Line 922: 'comment_body_format' => 'filtered_html', Line 927: db_insert('field_revision_comment_body')->fields(array( Line 935: 'comment_body_value', Line 936: 'comment_body_format', Line 946: 'comment_body_value' => 'Comment body', Line 947: 'comment_body_format' => 'filtered_html', Line 957: 'comment_body_value' => 'Second comment body', Line 958: 'comment_body_format' => 'filtered_html', drupal\core\modules\tracker\tracker.test (4 hits) Line 102: 'comment_body[' . LANGUAGE_NOT_SPECIFIED . '][0][value]' => $this->randomName(20), Line 162: 'comment_body[' . LANGUAGE_NOT_SPECIFIED . '][0][value]' => $this->randomName(20), Line 175: 'comment_body[' . LANGUAGE_NOT_SPECIFIED . '][0][value]' => $this->randomName(20), Line 208: 'comment_body[' . LANGUAGE_NOT_SPECIFIED . '][0][value]' => $this->randomName(20), drupal\core\modules\user\user.test (3 hits) Line 719: $edit['comment_body[' . $langcode . '][0][value]'] = $this->randomName(16); Line 1821: $edit['comment_body[' . $langcode . '][0][value]'] = $this->randomName(16); Line 1833: $edit['comment_body[' . $langcode . '][0][format]'] = $this->full_html_format->format; drupal\sites\default\files\simpletest\verbose\FilePrivateTestCase-4.html (2 hits) Line 142:
Line 146: