By melchior on
Hi guys,
I've got a problem while converting a module to be almost programmaticly.
The module enables me to plug a download-manager-module to a drupal site easily.
My goal, where I even get troubled, is to make a site available that
provide a login site (login, passwd fields and login-button).
I've got a content-type with that I load my custom design template
by file-pattern: node-my_type.tpl (I use smarty)
To get the login site programmaticly I've got:
function omoodm_account_menu ($may_cache)
{
$items = array();
$items[] = array (
'path' => 'download-login',
'access' => TRUE,
'title' => 'Donwload Login Site',
'callback' => 'drupal_get_form',
'callback arguments' => array('form_login_site_view'),
'type' => MENU_CALLBACK,
);
return $items;
}
So I'll get a callback but I don't know how to assign my needed
content type to get the right template file loaded.
any ideas?
would be great!
thx,
melchior