function page_theme_update_7201 in Page Theme 7.2
Create table {page_theme_role}.
File
- ./
page_theme.install, line 248 - Install, update and uninstall functions for the page_theme module.
Code
function page_theme_update_7201() {
$schema = array(
'description' => 'Sets up access permissions for page theme rules based on user roles',
'fields' => array(
'ptid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => "The page theme's rule ID from {page_theme}.ptid.",
),
'rid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => "The user's role ID from {users_roles}.rid.",
),
),
'primary key' => array(
'ptid',
'rid',
),
'indexes' => array(
'rid' => array(
'rid',
),
),
);
db_create_table('page_theme_role', $schema);
}