- Patch #453254 by Pasqualle: upgrade path for per-content type visibility of blocks.
parent
becb6f902f
commit
603efa2763
|
@ -2223,6 +2223,44 @@ function system_update_7028() {
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add the block_node_type table.
|
||||||
|
*/
|
||||||
|
function system_update_7029() {
|
||||||
|
$ret = array();
|
||||||
|
|
||||||
|
$schema['block_node_type'] = array(
|
||||||
|
'description' => 'Sets up display criteria for blocks based on content types',
|
||||||
|
'fields' => array(
|
||||||
|
'module' => array(
|
||||||
|
'type' => 'varchar',
|
||||||
|
'length' => 64,
|
||||||
|
'not null' => TRUE,
|
||||||
|
'description' => "The block's origin module, from {block}.module.",
|
||||||
|
),
|
||||||
|
'delta' => array(
|
||||||
|
'type' => 'varchar',
|
||||||
|
'length' => 32,
|
||||||
|
'not null' => TRUE,
|
||||||
|
'description' => "The block's unique delta within module, from {block}.delta.",
|
||||||
|
),
|
||||||
|
'type' => array(
|
||||||
|
'type' => 'varchar',
|
||||||
|
'length' => 32,
|
||||||
|
'not null' => TRUE,
|
||||||
|
'description' => "The machine-readable name of this type from {node_type}.type.",
|
||||||
|
),
|
||||||
|
),
|
||||||
|
'primary key' => array('module', 'delta', 'type'),
|
||||||
|
'indexes' => array(
|
||||||
|
'type' => array('type'),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
|
db_create_table($ret, 'block_node_type', $schema['block_node_type']);
|
||||||
|
return $ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue