template.php

//

if ((arg(0) == 'node') && (arg(1) == '78')){

function newsflash_form_element($element, $value) {

$t = get_t();

$output = '

if (!empty($element['#id'])) {
$output .= ' id="'. $element['#id'] .'-wrapper"';
}
$output .= ">\n";

if (!empty($element['#description'])) {
$output .= '

'. $element['#description'] ."

\n";
}

$required = !empty($element['#required']) ? '*' : '';

if (!empty($element['#title'])) {

This can be done cleanly using views.

Add a "node type" view
Add a "block" display

Settings for the view: (I copy my settings below marking with *** the modified ones)

Display: Block

Basic settings
Name: Defaults
Title: None
Change settings for this styleStyle: Unformatted
Change settings for this styleRow style: Node *******
Use AJAX: No
Use pager: No
Items to display: 10
More link: No
Distinct: No
Access: Unrestricted
Exposed form in block: No
Header: None
Footer: None
Empty text: None
Theme: Information

Relationships: None defined
Arguments: None defined

node type

if ($form['#node']->type == 'video') {
return _phptemplate_callback('node-video-edit', array('form' => $form));
}

arg(0)

<?php
// Add Form Start...........jghyde..
if ((arg(0) == 'node') && (arg(1) == 'add') && (arg(2) == 'inhaltstyp')){
function phptemplate_node_form($form) {
return _phptemplate_callback('inhaltstyp', array('user' => $user, 'form' => $form));
}
}
// Add Form End.................
// Edit Form Start...........Dublin Drupaller..
if ((arg(0) == 'node') && (arg(2) == 'edit')){
$node = node_load(array('nid' => arg(1)));
if ($node->type == 'inhaltstyp'){
function phptemplate_node_form($form) {

array values

<?php
print_r($form_values)
?>

<?php
print_r($form_values)
?>

Inhalt abgleichen