Drupal 7 - Custom Node Form Template using theme_hook_suggestions or hook_theme?

I have recently installed Drupal 7 and am trying to create a custom node EDIT form.
In Drupal 6 I would do the following in hook_theme():

    $reg['bgshouse_node_form'] = array(
      'arguments' => array('form' => NULL),
      'template' => 'node-bgshouse-edit'
    );
    return $reg;

I of course tried this in Drupal 7, but could not get it to work.
After that failed (and I read some docs, and poured thru some more docs), I tried something like this in hook_theme():

    $reg['gstcourse_node_form'] = array(
      'arguments' => array(
          'form' => NULL,
      ),
      'template' => 'node-gstcourse-edit',
      'render element' => 'elements',
      'preprocess functions' => array('template_preprocess','template_preprocess_node'),
      );

And that *partially* worked (it had errors in the page because of some missing variables, and it just didnt' seem right that I was supposed to populate the "preprocess functions" array since no one else was ever doing that in any of the examples I found).
So, I scrapped that and tried this:
<?php
function gstmain_preprocess_page(&$vars, $hook) {
if (isset($vars['node'])) {
// If the node type is "blog" the template suggestion will be "page--blog.tpl.php".
$vars['theme_hook_suggestions'][] = 'page__'. str_replace('_', '--', $vars['node']->type);

Install documentation has been hacked

The installation documentation has been hacked. The contents list reads:

track & trace system

I am looking for a track & trace system in drupal? Any suggestions?

Thanx
Sylvie

New content doesn't show

Hi.

I've come quite a bit on my homepage. It's essentially a page for my company for the employees to access and acknowledge new information. I recently installed the Marinelli theme and that presented a new problem:

When I post new content it doesn't show to the regular users. It shows on my admin-login, but nowhere else. The posts are presented via views and also with a block which shows recently posted content.

Anyone got an idea as to why this is?

Kind regards,
Hannes

Advanced Forum - Page Template Customization

Hi everyone,

I am using drupal 7.

Objective: To create a custom page template to be used for every part of the "advanced forum" setup.

Problem: I have created a page--forum.tpl.php template, which is being used for every part of the "advanced forum" except for the post itself.

I notice that the URL most likely has something to do with this as all the sections that are using the page--forum.tpl.php template are basically site.com/forum/*, however, the post itself is site.com/node/*

Fields API, create new content type

Hi

I’m creating a new content type in the .install file. I’m using installed_fields() and installed_instances(). For example:

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x