netnode IT services GmbH
Mythenstrasse 7
6003 Luzern
041 450 10 66
Kontaktformular
Newsletter [neu]
Snippets
Image Cache Usage
<?php
print theme('imagecache', $preset, $image['filepath'], $alt, $title, $attributes);
?>Manually load a bunch of nodes with SQL
<?php
$nodes = array();
$sql = "SELECT nid FROM content_type_event";
$result = db_query($sql);
while ($result && ($object = db_fetch_object($result))) {
$nodes[] = node_load($object->nid);
}
?>Manually load a menu
<?php
$menu_global = menu_navigation_links("secondary-links", 0);
$menu1 = menu_navigation_links("primary-links", 0);?>This is the solution:
<?php
$node = new stdClass();
$node->type = 'document';
module_load_include('inc', 'node', 'node.pages');
$output .= drupal_get_form('document_node_form', $node);
?>