array( 'nid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0), 'permissions' => array('type' => 'text', 'not null' => TRUE, 'size' => 'big'), ), 'primary key' => array('nid'), ); return $schema; } /** * Install */ function user_relationship_node_access_install() { drupal_install_schema('user_relationship_node_access'); } /** * Uninstall */ function user_relationship_node_access_uninstall() { drupal_uninstall_schema('user_relationship_node_access'); variable_del('user_relationship_node_access_allowed_types'); }