'#markup'=>'<p>'.t('%title is part of a book outline, and has associated child pages. If you proceed with deletion, the child pages will be relocated automatically.',array('%title'=>$node->title)).'</p>',
'#markup'=>'<p>'.t('%title is part of a book outline, and has associated child pages. If you proceed with deletion, the child pages will be relocated automatically.',array('%title'=>$node->title[FIELD_LANGUAGE_NONE][0]['value'])).'</p>',
'#weight'=>-10,
);
}
...
...
@@ -1103,7 +1103,7 @@ function book_node_export($node, $children = '') {
$description=t('%title has associated child pages, which will be relocated automatically to maintain their connection to the book. To recreate the hierarchy (as it was before removing this page), %title may be added again using the Outline tab, and each of its former child pages will need to be relocated manually.',$title);
@@ -110,7 +110,7 @@ class BookTestCase extends DrupalWebTestCase {
// Check previous, up, and next links.
if($previous){
$this->assertRaw(l('‹ '.$previous->title,'node/'.$previous->nid,array('attributes'=>array('class'=>array('page-previous'),'title'=>t('Go to previous page')))),t('Previous page link found.'));
$this->assertRaw(l('‹ '.$previous->title[FIELD_LANGUAGE_NONE][0]['value'],'node/'.$previous->nid,array('attributes'=>array('class'=>array('page-previous'),'title'=>t('Go to previous page')))),t('Previous page link found.'));
}
if($up){
...
...
@@ -118,7 +118,7 @@ class BookTestCase extends DrupalWebTestCase {
}
if($next){
$this->assertRaw(l($next->title.' ›','node/'.$next->nid,array('attributes'=>array('class'=>array('page-next'),'title'=>t('Go to next page')))),t('Next page link found.'));
$this->assertRaw(l($next->title[FIELD_LANGUAGE_NONE][0]['value'].' ›','node/'.$next->nid,array('attributes'=>array('class'=>array('page-next'),'title'=>t('Go to next page')))),t('Next page link found.'));
}
// Compute the expected breadcrumb.
...
...
@@ -140,7 +140,7 @@ class BookTestCase extends DrupalWebTestCase {
// Check printer friendly version.
$this->drupalGet('book/export/html/'.$node->nid);
$this->assertText($node->title,t('Printer friendly title found.'));
$this->assertText($node->title[FIELD_LANGUAGE_NONE][0]['value'],t('Printer friendly title found.'));
$this->assertRaw(check_markup($node->body[FIELD_LANGUAGE_NONE][0]['value'],$node->body[FIELD_LANGUAGE_NONE][0]['format']),t('Printer friendly body found.'));
$number++;
...
...
@@ -154,7 +154,7 @@ class BookTestCase extends DrupalWebTestCase {
$this->assertRaw(t('!title field is required.',array('!title'=>$instance['label'])),t('Node save failed when required multiple value file field was empty.'));
@@ -1195,7 +1231,7 @@ function node_language_provider($languages) {
*/
functionnode_show($node,$message=FALSE){
if($message){
drupal_set_title(t('Revision of %title from %date',array('%title'=>$node->title,'%date'=>format_date($node->revision_timestamp))),PASS_THROUGH);
drupal_set_title(t('Revision of %title from %date',array('%title'=>$node->title[FIELD_LANGUAGE_NONE][0]['value'],'%date'=>format_date($node->revision_timestamp))),PASS_THROUGH);
}
// Update the history table, stating that this user viewed this node.
...
...
@@ -1229,7 +1265,7 @@ function template_preprocess_node(&$variables) {