12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- function materio_translator_schema() {
- $schema['materio_translator'] = array(
- 'description' => 'Store language permissions per user',
- 'fields' => array(
- 'uid' => array(
- 'description' => 'The primary identifier for a user.',
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- ),
- 'perm' => array(
- 'description' => 'List of languages that the user has permission for.',
- 'type' => 'text',
- 'not null' => FALSE,
- 'size' => 'big',
- ),
- ),
- 'primary key' => array('uid'),
- );
- return $schema;
- }
- function materio_translator_install() {
-
- db_query("UPDATE {system} SET weight = 90 WHERE name = 'materio_translator' AND type = 'module'");
- }
-
|