123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882 |
- <?php
- function taxonomy_uninstall() {
-
- variable_del('taxonomy_override_selector');
- variable_del('taxonomy_terms_per_page_admin');
-
- $vocabularies = db_query("SELECT machine_name FROM {taxonomy_vocabulary}")->fetchCol();
- foreach ($vocabularies as $vocabulary) {
- field_attach_delete_bundle('taxonomy_term', $vocabulary);
- }
- }
- function taxonomy_schema() {
- $schema['taxonomy_term_data'] = array(
- 'description' => 'Stores term information.',
- 'fields' => array(
- 'tid' => array(
- 'type' => 'serial',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- 'description' => 'Primary Key: Unique term ID.',
- ),
- 'vid' => array(
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- 'default' => 0,
- 'description' => 'The {taxonomy_vocabulary}.vid of the vocabulary to which the term is assigned.',
- ),
- 'name' => array(
- 'type' => 'varchar',
- 'length' => 255,
- 'not null' => TRUE,
- 'default' => '',
- 'description' => 'The term name.',
- 'translatable' => TRUE,
- ),
- 'description' => array(
- 'type' => 'text',
- 'not null' => FALSE,
- 'size' => 'big',
- 'description' => 'A description of the term.',
- 'translatable' => TRUE,
- ),
- 'format' => array(
- 'type' => 'varchar',
- 'length' => 255,
- 'not null' => FALSE,
- 'description' => 'The {filter_format}.format of the description.',
- ),
- 'weight' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'default' => 0,
- 'description' => 'The weight of this term in relation to other terms.',
- ),
- ),
- 'primary key' => array('tid'),
- 'foreign keys' => array(
- 'vocabulary' => array(
- 'table' => 'taxonomy_vocabulary',
- 'columns' => array('vid' => 'vid'),
- ),
- ),
- 'indexes' => array(
- 'taxonomy_tree' => array('vid', 'weight', 'name'),
- 'vid_name' => array('vid', 'name'),
- 'name' => array('name'),
- ),
- );
- $schema['taxonomy_term_hierarchy'] = array(
- 'description' => 'Stores the hierarchical relationship between terms.',
- 'fields' => array(
- 'tid' => array(
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- 'default' => 0,
- 'description' => 'Primary Key: The {taxonomy_term_data}.tid of the term.',
- ),
- 'parent' => array(
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- 'default' => 0,
- 'description' => "Primary Key: The {taxonomy_term_data}.tid of the term's parent. 0 indicates no parent.",
- ),
- ),
- 'indexes' => array(
- 'parent' => array('parent'),
- ),
- 'foreign keys' => array(
- 'taxonomy_term_data' => array(
- 'table' => 'taxonomy_term_data',
- 'columns' => array('tid' => 'tid'),
- ),
- ),
- 'primary key' => array('tid', 'parent'),
- );
- $schema['taxonomy_vocabulary'] = array(
- 'description' => 'Stores vocabulary information.',
- 'fields' => array(
- 'vid' => array(
- 'type' => 'serial',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- 'description' => 'Primary Key: Unique vocabulary ID.',
- ),
- 'name' => array(
- 'type' => 'varchar',
- 'length' => 255,
- 'not null' => TRUE,
- 'default' => '',
- 'description' => 'Name of the vocabulary.',
- 'translatable' => TRUE,
- ),
- 'machine_name' => array(
- 'type' => 'varchar',
- 'length' => 255,
- 'not null' => TRUE,
- 'default' => '',
- 'description' => 'The vocabulary machine name.',
- ),
- 'description' => array(
- 'type' => 'text',
- 'not null' => FALSE,
- 'size' => 'big',
- 'description' => 'Description of the vocabulary.',
- 'translatable' => TRUE,
- ),
- 'hierarchy' => array(
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- 'default' => 0,
- 'size' => 'tiny',
- 'description' => 'The type of hierarchy allowed within the vocabulary. (0 = disabled, 1 = single, 2 = multiple)',
- ),
- 'module' => array(
- 'type' => 'varchar',
- 'length' => 255,
- 'not null' => TRUE,
- 'default' => '',
- 'description' => 'The module which created the vocabulary.',
- ),
- 'weight' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'default' => 0,
- 'description' => 'The weight of this vocabulary in relation to other vocabularies.',
- ),
- ),
- 'primary key' => array('vid'),
- 'indexes' => array(
- 'list' => array('weight', 'name'),
- ),
- 'unique keys' => array(
- 'machine_name' => array('machine_name'),
- ),
- );
- $schema['taxonomy_index'] = array(
- 'description' => 'Maintains denormalized information about node/term relationships.',
- 'fields' => array(
- 'nid' => array(
- 'description' => 'The {node}.nid this record tracks.',
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- 'default' => 0,
- ),
- 'tid' => array(
- 'description' => 'The term ID.',
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- 'default' => 0,
- ),
- 'sticky' => array(
- 'description' => 'Boolean indicating whether the node is sticky.',
- 'type' => 'int',
- 'not null' => FALSE,
- 'default' => 0,
- 'size' => 'tiny',
- ),
- 'created' => array(
- 'description' => 'The Unix timestamp when the node was created.',
- 'type' => 'int',
- 'not null' => TRUE,
- 'default'=> 0,
- ),
- ),
- 'indexes' => array(
- 'term_node' => array('tid', 'sticky', 'created'),
- 'nid' => array('nid'),
- ),
- 'foreign keys' => array(
- 'tracked_node' => array(
- 'table' => 'node',
- 'columns' => array('nid' => 'nid'),
- ),
- 'term' => array(
- 'table' => 'taxonomy_term_data',
- 'columns' => array('tid' => 'tid'),
- ),
- ),
- );
- return $schema;
- }
- function taxonomy_field_schema($field) {
- return array(
- 'columns' => array(
- 'tid' => array(
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => FALSE,
- ),
- ),
- 'indexes' => array(
- 'tid' => array('tid'),
- ),
- 'foreign keys' => array(
- 'tid' => array(
- 'table' => 'taxonomy_term_data',
- 'columns' => array('tid' => 'tid'),
- ),
- ),
- );
- }
- function taxonomy_update_dependencies() {
-
-
-
- $dependencies['taxonomy'][7004] = array(
- 'system' => 7027,
- );
- return $dependencies;
- }
- function _update_7002_taxonomy_get_vocabularies() {
- return db_query('SELECT v.* FROM {taxonomy_vocabulary} v ORDER BY v.weight, v.name')->fetchAllAssoc('vid', PDO::FETCH_OBJ);
- }
- function taxonomy_update_7001() {
- db_rename_table('term_data', 'taxonomy_term_data');
- db_rename_table('term_hierarchy', 'taxonomy_term_hierarchy');
- db_rename_table('term_node', 'taxonomy_term_node');
- db_rename_table('term_relation', 'taxonomy_term_relation');
- db_rename_table('term_synonym', 'taxonomy_term_synonym');
- db_rename_table('vocabulary', 'taxonomy_vocabulary');
- db_rename_table('vocabulary_node_types', 'taxonomy_vocabulary_node_type');
- }
- function taxonomy_update_7002() {
- $field = array(
- 'type' => 'varchar',
- 'length' => 255,
- 'not null' => TRUE,
- 'default' => '',
- 'description' => 'The vocabulary machine name.',
- );
- db_add_field('taxonomy_vocabulary', 'machine_name', $field);
-
-
- $vids = db_query('SELECT vid FROM {taxonomy_vocabulary}')->fetchCol();
- foreach ($vids as $vid) {
- $machine_name = 'vocabulary_' . $vid;
- db_update('taxonomy_vocabulary')
- ->fields(array('machine_name' => $machine_name))
- ->condition('vid', $vid)
- ->execute();
- }
-
-
- db_add_unique_key('taxonomy_vocabulary', 'machine_name', array('machine_name'));
- }
- function taxonomy_update_7003() {
- db_drop_field('taxonomy_vocabulary', 'relations');
- }
- function taxonomy_update_7004() {
- $taxonomy_index = array(
- 'description' => 'Maintains denormalized information about node/term relationships.',
- 'fields' => array(
- 'nid' => array(
- 'description' => 'The {node}.nid this record tracks.',
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- 'default' => 0,
- ),
- 'tid' => array(
- 'description' => 'The term ID.',
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- 'default' => 0,
- ),
- 'sticky' => array(
- 'description' => 'Boolean indicating whether the node is sticky.',
- 'type' => 'int',
- 'not null' => FALSE,
- 'default' => 0,
- 'size' => 'tiny',
- ),
- 'created' => array(
- 'description' => 'The Unix timestamp when the node was created.',
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- 'default'=> 0,
- ),
- ),
- 'indexes' => array(
- 'term_node' => array('tid', 'sticky', 'created'),
- 'nid' => array('nid'),
- ),
- 'foreign keys' => array(
- 'tracked_node' => array(
- 'table' => 'node',
- 'columns' => array('nid' => 'nid'),
- ),
- 'term' => array(
- 'table' => 'taxonomy_term_data',
- 'columns' => array('tid' => 'tid'),
- ),
- ),
- );
- db_create_table('taxonomy_index', $taxonomy_index);
-
-
- $result = db_query('SELECT v.*, n.type FROM {taxonomy_vocabulary} v LEFT JOIN {taxonomy_vocabulary_node_type} n ON v.vid = n.vid ORDER BY v.weight, v.name');
- $vocabularies = array();
- foreach ($result as $record) {
-
-
- if (isset($record->type)) {
- $node_types[$record->vid][$record->type] = $record->type;
- unset($record->type);
- $record->nodes = $node_types[$record->vid];
- }
- elseif (!isset($record->nodes)) {
- $record->nodes = array();
- }
- $vocabularies[$record->vid] = $record;
- }
- foreach ($vocabularies as $vocabulary) {
- $field_name = 'taxonomy_' . $vocabulary->machine_name;
- $field = array(
- 'field_name' => $field_name,
- 'module' => 'taxonomy',
- 'type' => 'taxonomy_term_reference',
- 'cardinality' => $vocabulary->multiple || $vocabulary->tags ? FIELD_CARDINALITY_UNLIMITED : 1,
- 'settings' => array(
- 'required' => $vocabulary->required ? TRUE : FALSE,
- 'allowed_values' => array(
- array(
- 'vocabulary' => $vocabulary->machine_name,
- 'parent' => 0,
- ),
- ),
- ),
- );
- _update_7000_field_create_field($field);
- foreach ($vocabulary->nodes as $bundle) {
- $instance = array(
- 'label' => $vocabulary->name,
- 'field_name' => $field_name,
- 'bundle' => $bundle,
- 'entity_type' => 'node',
- 'settings' => array(),
- 'description' => $vocabulary->help,
- 'required' => $vocabulary->required,
- 'widget' => array(),
- 'display' => array(
- 'default' => array(
- 'type' => 'taxonomy_term_reference_link',
- 'weight' => 10,
- ),
- 'teaser' => array(
- 'type' => 'taxonomy_term_reference_link',
- 'weight' => 10,
- ),
- ),
- );
- if ($vocabulary->tags) {
- $instance['widget'] = array(
- 'type' => 'taxonomy_autocomplete',
- 'module' => 'taxonomy',
- 'settings' => array(
- 'size' => 60,
- 'autocomplete_path' => 'taxonomy/autocomplete',
- ),
- );
- }
- else {
- $instance['widget'] = array(
- 'type' => 'select',
- 'module' => 'options',
- 'settings' => array(),
- );
- }
- _update_7000_field_create_instance($field, $instance);
- }
- }
-
-
-
-
-
- $allowed_values = array();
- foreach (_update_7002_taxonomy_get_vocabularies() as $vocabulary) {
- $allowed_values[] = array(
- 'vocabulary' => $vocabulary->machine_name,
- 'parent' => 0,
- );
- }
- $field_name = 'taxonomyextra';
- $field = array(
- 'field_name' => $field_name,
- 'module' => 'taxonomy',
- 'type' => 'taxonomy_term_reference',
- 'cardinality' => FIELD_CARDINALITY_UNLIMITED,
- 'settings' => array(
- 'required' => FALSE,
- 'allowed_values' => $allowed_values,
- ),
- );
- _update_7000_field_create_field($field);
- foreach (_update_7000_node_get_types() as $bundle) {
- $instance = array(
- 'label' => 'Taxonomy upgrade extras',
- 'field_name' => $field_name,
- 'entity_type' => 'node',
- 'bundle' => $bundle->type,
- 'settings' => array(),
- 'description' => 'Debris left over after upgrade from Drupal 6',
- 'widget' => array(
- 'type' => 'taxonomy_autocomplete',
- 'module' => 'taxonomy',
- 'settings' => array(),
- ),
- 'display' => array(
- 'default' => array(
- 'type' => 'taxonomy_term_reference_link',
- 'weight' => 10,
- ),
- 'teaser' => array(
- 'type' => 'taxonomy_term_reference_link',
- 'weight' => 10,
- ),
- ),
- );
- _update_7000_field_create_instance($field, $instance);
- }
- $fields = array('help', 'multiple', 'required', 'tags');
- foreach ($fields as $field) {
- db_drop_field('taxonomy_vocabulary', $field);
- }
- }
- function taxonomy_update_7005(&$sandbox) {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- $conditions = array(
- 'type' => 'taxonomy_term_reference',
- 'deleted' => 0,
- );
- $field_info = _update_7000_field_read_fields($conditions, 'field_name');
-
-
- if (!isset($sandbox['total'])) {
- $sandbox['last'] = 0;
- $sandbox['count'] = 0;
-
-
-
-
- $sandbox['total'] = db_query('SELECT COUNT(*) FROM {taxonomy_term_data} td INNER JOIN {taxonomy_term_node} tn ON td.tid = tn.tid INNER JOIN {node} n ON tn.nid = n.nid LEFT JOIN {node} n2 ON tn.vid = n2.vid')->fetchField();
-
-
- $result = db_query('SELECT v.vid, v.machine_name, n.type FROM {taxonomy_vocabulary} v INNER JOIN {taxonomy_vocabulary_node_type} n ON v.vid = n.vid');
- $vocabularies = array();
- foreach ($result as $record) {
-
-
- if (isset($record->type)) {
- $vocabularies[$record->vid][$record->type] = 'taxonomy_'. $record->machine_name;
- }
- }
- if (!empty($vocabularies)) {
- $sandbox['vocabularies'] = $vocabularies;
- }
- db_create_table('taxonomy_update_7005', array(
- 'description' => 'Stores temporary data for taxonomy_update_7005.',
- 'fields' => array(
- 'n' => array(
- 'description' => 'Preserve order.',
- 'type' => 'serial',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- ),
- 'vocab_id' => array(
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- 'default' => 0,
- ),
- 'tid' => array(
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- ),
- 'nid' => array(
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- ),
- 'vid' => array(
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => FALSE,
- 'default' => NULL,
- ),
- 'type' => array(
- 'type' => 'varchar',
- 'length' => 32,
- 'not null' => TRUE,
- 'default' => '',
- ),
- 'created' => array(
- 'type' => 'int',
- 'not null' => FALSE,
- ),
- 'sticky' => array(
- 'type' => 'int',
- 'not null' => FALSE,
- ),
- 'is_current' => array(
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => FALSE,
- ),
- ),
- 'primary key' => array('n'),
- ));
-
-
- $query = db_select('taxonomy_term_data', 'td');
-
-
- $query->join('taxonomy_term_node', 'tn', 'td.tid = tn.tid');
-
-
-
- $query->join('node', 'n', 'tn.nid = n.nid');
-
-
-
-
-
- $query->leftJoin('node', 'n2', 'tn.vid = n2.vid');
- $query->addField('td', 'vid', 'vocab_id');
- $query->addField('td', 'tid');
- $query->addField('tn', 'nid');
- $query->addField('tn', 'vid');
- $query->addField('n', 'type');
- $query->addField('n2', 'created');
- $query->addField('n2', 'sticky');
- $query->addField('n2', 'nid', 'is_current');
-
-
-
-
-
-
-
-
- $query->orderBy('tn.vid');
- $query->orderBy('td.weight');
- $query->orderBy('tn.tid');
- db_insert('taxonomy_update_7005')
- ->from($query)
- ->execute();
- }
- else {
-
- $batch = 1000;
- $result = db_query_range('SELECT vocab_id, tid, nid, vid, type, created, sticky, is_current FROM {taxonomy_update_7005} ORDER BY n', $sandbox['last'], $batch);
- if (isset($sandbox['cursor'])) {
- $values = $sandbox['cursor']['values'];
- $deltas = $sandbox['cursor']['deltas'];
- }
- else {
- $deltas = array();
- }
- foreach ($result as $record) {
- $sandbox['count'] += 1;
-
-
- $field_name = isset($sandbox['vocabularies'][$record->vocab_id][$record->type]) ? $sandbox['vocabularies'][$record->vocab_id][$record->type] : 'taxonomyextra';
- $field = $field_info[$field_name];
-
-
- if (!isset($deltas[$field_name])) {
- $deltas[$field_name] = 0;
- }
- if (isset($values)) {
-
-
- if ($record->vid == $values[2]) {
-
-
-
-
- if ($field['cardinality'] != FIELD_CARDINALITY_UNLIMITED && ($deltas[$field_name] + 1) > $field['cardinality']) {
-
-
- $field_name = 'taxonomyextra';
- $field = $field_info[$field_name];
- if (!isset($deltas[$field_name])) {
- $deltas[$field_name] = 0;
- }
- }
- }
- else {
-
- $deltas = array($field_name => 0);
- }
- }
-
-
- $table_name = "field_data_{$field_name}";
- $revision_name = "field_revision_{$field_name}";
- $value_column = $field_name . '_tid';
-
-
- $columns = array('entity_type', 'entity_id', 'revision_id', 'bundle', 'language', 'delta', $value_column);
- $values = array('node', $record->nid, $record->vid, $record->type, LANGUAGE_NONE, $deltas[$field_name]++, $record->tid);
-
- db_insert($revision_name)->fields($columns)->values($values)->execute();
-
- if ($record->is_current) {
- db_insert($table_name)->fields($columns)->values($values)->execute();
-
- db_insert('taxonomy_index')
- ->fields(array('nid', 'tid', 'sticky', 'created',))
- ->values(array($record->nid, $record->tid, $record->sticky, $record->created))
- ->execute();
- }
- }
-
-
- $sandbox['cursor'] = array(
- 'values' => $values,
- 'deltas' => $deltas,
- );
- $sandbox['last'] += $batch;
- }
- if ($sandbox['count'] < $sandbox['total']) {
- $sandbox['#finished'] = FALSE;
- }
- else {
- db_drop_table('taxonomy_vocabulary_node_type');
- db_drop_table('taxonomy_term_node');
-
- db_drop_table('taxonomy_update_7005');
- $sandbox['#finished'] = TRUE;
-
- $field = $field_info['taxonomyextra'];
- $revision_name = 'field_revision_' . $field['field_name'];
- $node_types = db_select($revision_name)->distinct()->fields($revision_name, array('bundle'))
- ->execute()->fetchCol();
- if (empty($node_types)) {
-
- _update_7000_field_delete_field('taxonomyextra');
- }
- else {
-
- $bundles = db_query('SELECT bundle FROM {field_config_instance} WHERE field_name = :field_name', array(':field_name' => 'taxonomyextra'))->fetchCol();
- $bundles = array_diff($bundles, $node_types);
- foreach ($bundles as $bundle) {
- _update_7000_field_delete_instance('taxonomyextra', 'node', $bundle);
- }
- }
- }
- }
- function taxonomy_update_7006() {
- db_add_field('taxonomy_term_data', 'format', array(
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => FALSE,
- 'description' => 'The {filter_format}.format of the description.',
- ));
- }
- function taxonomy_update_7007() {
- db_add_index('taxonomy_term_data', 'name', array('name'));
- }
- function taxonomy_update_7008() {
- db_drop_index('taxonomy_term_data', 'taxonomy_tree');
- db_change_field('taxonomy_term_data', 'weight', 'weight', array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'default' => 0,
- 'description' => 'The weight of this term in relation to other terms.',
- ), array(
- 'indexes' => array(
- 'taxonomy_tree' => array('vid', 'weight', 'name'),
- ),
- ));
- db_drop_index('taxonomy_vocabulary', 'list');
- db_change_field('taxonomy_vocabulary', 'weight', 'weight', array(
- 'type' => 'int',
- 'not null' => TRUE,
- 'default' => 0,
- 'description' => 'The weight of this vocabulary in relation to other vocabularies.',
- ), array(
- 'indexes' => array(
- 'list' => array('weight', 'name'),
- ),
- ));
- }
- function taxonomy_update_7009() {
- db_change_field('taxonomy_term_data', 'format', 'format', array(
- 'type' => 'varchar',
- 'length' => 255,
- 'not null' => FALSE,
- 'description' => 'The {filter_format}.format of the description.',
- ));
- }
- function taxonomy_update_7010() {
- db_change_field('taxonomy_index', 'created', 'created', array(
- 'description' => 'The Unix timestamp when the node was created.',
- 'type' => 'int',
- 'unsigned' => FALSE,
- 'not null' => TRUE,
- 'default'=> 0,
- ));
- }
|