I'm a new drupal user and we have created some forms. We wanted a better database example and had to refer to this module.
I see that there is no schema implementation done in this module which will hamper its execution. Hoping that someone does it asap.

Comments

jhodgdon’s picture

Title: Documentation problem with dbtng_example.module » dbtng_example.module has no schema
Project: Drupal core » Examples for Developers
Version: 7.0-alpha6 »
Component: documentation » DBTNG Example
Category: task » support
Priority: Major » Normal
Status: Needs review » Fixed

Actually, there is a schema implementation. Like most schema implementations, it is in the .install file and not in the .module file.
http://api.drupal.org/api/function/dbtng_example_schema/7

Please visit the Examples for Developers project to download the full example.

jhodgdon’s picture

Title: dbtng_example.module has no schema » cannot find the dbtng_example.module schema
jdevelop’s picture

so you agree with me or does this module not need a schema.. !!! there are errors after installation...

rfay’s picture

The dbtng_example_schema() is implemented in dbtng_example.install, which is a part of the DBTNG Example module here in the Examples project.

I just enabled and used the module without trouble, and the database table it's supposed to create was created.

Are you downloading and installing the D7 version of Examples project from http://drupal.org/project/examples?

jdevelop’s picture

yeah... it worked for me as well... I forgot to mention it here... thanks anyways...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.