mymodule.module <?php /** * Implementation of hook_menu(). */ function mymodule_menu() { $items['products'] = array( 'title' => 'Products', 'page callback' => 'products_by_categories', 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); return $items; } /** * Products By Categories Function */ function products_by_categories() { return theme('products'); } /** * Implements hook_theme(). */ function mymodule_theme() { return array( 'products' => array( 'variables' => array(), 'template' => 'templates/products-template', ), ...