Inserting DB Reconds in a .install file

I've got a .install file where I describe my database table schema. The table in question has a dozen or so pre-defined records in it that track key values, etc. I'd like to be able to insert those records in the .install file rather than check whether to insert or update the record in the module that uses them. Is there a method that would allow me to do that? I attempted to describe a function in the .install file that does all of the inserts. But I got error messages that the database table didn't exist.

How to create a module in Drupal 7?

I am new to Drupal, I have installed Drupal 7. I am trying to create a module.
Thanks in advance.

How much php memory do I need?

hi,

im currently working on a site on a 1and1 server. when activating location module, it said "out of memory" ... i changed the settings.php (memory limit to 512) and it works. then i wanted to activate gmap module and again: out of memory!

phpinfo says i have 80M, drupal status says 512M like i told in the settings.php

so i would like to change the server and my question is:

how much memory do i need for a complex site?
how much is enough to install all available modules? :)

thanks a lot for your answer!

Form API module

I used the example for drupal 7.x form API and having some issues.
I am not finding a way to modify the tab labels like you see on this page which is a working version of the installed examples..
http://d7.drupalexamples.info/examples/form_example/tutorial

I tried changing any of the labels and not having any luck.

Ideally I would like to be able to change the tab names to read something like
/ basic info / medical history/ opportunity information /

Translate images in amount of images media gallery

Hello,

I just started with media and media gallery.
It works great, but.

Underneath the pictures of the all galleries page there is the amount of pictures. Looks great but images is not in the language of the website.

Do you know how to translate this?

Here's an example: http://tinyurl.com/3ubsrdd

Thanks!

Views Reverse Relationships

As I try and wrap my head around views, I'm hoping someone can steer me toward what I'm missing when I try to set up the following scenario.

I'm trying to build functionality similar to what one would see on IMDB.

I have a node content type for films, and a node content type for talent. Talent could be writers, actors, producers, etc.

I've added a field on the films content type where you can add talent, pulled by node reference from the talent content type. Obviously everything works fine when viewing a movie.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x