[support] hook_forms and theming

Ivan Sergio Borgonovo mail at webthatworks.it
Tue Jan 29 16:20:44 UTC 2008


Is there a smarter way to recycle the same form and same themeing
function other than hook_forms + aliasing the theme function:

function mymodule_forms() {
  $forms['mymodule_myform2']=Array(
    'callback'=> 'mymodule_myform1',
  );
  return $form;
}

function theme_mymodule_myform2($form) {
  return theme_mymodule_myform1($form);
}


-- 
Ivan Sergio Borgonovo
http://www.webthatworks.it



More information about the support mailing list