summaryrefslogtreecommitdiff
path: root/modules/node
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-10-16 19:06:25 +0000
committerDries Buytaert <dries@buytaert.net>2009-10-16 19:06:25 +0000
commit60c5878351cc547dbfda260fefcf378491c958ec (patch)
tree9985db3bf964c09cb8564b54c79f345d773edf21 /modules/node
parent4430d46334127c69d5ff97ce2e15475c0fae2654 (diff)
downloadbrdo-60c5878351cc547dbfda260fefcf378491c958ec.tar.gz
brdo-60c5878351cc547dbfda260fefcf378491c958ec.tar.bz2
- Patch #593746 by #593746 by sun, andypost: prepare Drupal core for dynamic data translation.
Diffstat (limited to 'modules/node')
-rw-r--r--modules/node/node.install5
-rw-r--r--modules/node/node.module3
2 files changed, 7 insertions, 1 deletions
diff --git a/modules/node/node.install b/modules/node/node.install
index 7a4e156eb..9c4c2201f 100644
--- a/modules/node/node.install
+++ b/modules/node/node.install
@@ -269,6 +269,7 @@ function node_schema() {
'length' => 255,
'not null' => TRUE,
'default' => '',
+ 'translatable' => TRUE,
),
'base' => array(
'description' => 'The base string used to construct callbacks corresponding to this node type.',
@@ -281,12 +282,14 @@ function node_schema() {
'type' => 'text',
'not null' => TRUE,
'size' => 'medium',
+ 'translatable' => TRUE,
),
'help' => array(
'description' => 'Help information shown to the user when creating a {node} of this type.',
'type' => 'text',
'not null' => TRUE,
'size' => 'medium',
+ 'translatable' => TRUE,
),
'has_title' => array(
'description' => 'Boolean indicating whether this type uses the {node}.title field.',
@@ -301,6 +304,7 @@ function node_schema() {
'length' => 255,
'not null' => TRUE,
'default' => '',
+ 'translatable' => TRUE,
),
'has_body' => array(
'description' => 'Boolean indicating whether this type has the body field attached.',
@@ -315,6 +319,7 @@ function node_schema() {
'length' => 255,
'not null' => TRUE,
'default' => '',
+ 'translatable' => TRUE,
),
'custom' => array(
'description' => 'A boolean indicating whether this type is defined by a module (FALSE) or by a user via Add content type (TRUE).',
diff --git a/modules/node/node.module b/modules/node/node.module
index 038a0a175..4c85affad 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -674,9 +674,10 @@ function _node_types_build() {
$_node_types->names[$type] = $info['name'];
}
$type_result = db_select('node_type', 'nt')
+ ->addTag('translatable')
+ ->addTag('node_type_access')
->fields('nt')
->orderBy('nt.type', 'ASC')
- ->addTag('node_type_access')
->execute();
foreach ($type_result as $type_object) {
// Check for node types from disabled modules and mark their types for removal.