How can i write a specific page for a module? For example, imagine that i have a module called monedas and i need be able to access to a url like: http://localhost/monedas exactly like, for example, the postcard module. It has a function named postcard_page, but i haven´t find any documentation about this hook. thanks a lot in advance
Use the Menu system: http://api.drupal.org/api/group/menu/5 Kyle On Jan 12, 2008 7:47 AM, Alex Moreno <al3xmor3no@gmail.com> wrote:
How can i write a specific page for a module? For example, imagine that i have a module called monedas and i need be able to access to a url like:
exactly like, for example, the postcard module. It has a function named postcard_page, but i haven´t find any documentation about this hook.
thanks a lot in advance
-- Research Assistant eBusiness Center @ BYU kyle.mathews2000.com/blog
exactly, ive added this to my code with success: function monedas_menu() { $items = array(); $items[] = array( 'path' => 'admin/settings/monedas', 'title' => t('Monedas settings'), 'description' => t('Panel de control del gestor inmobiliario de TDO'), 'callback' => 'drupal_get_form', 'callback arguments' => 'monedas_admin', 'access' => user_access('access administration pages'), 'type' => MENU_NORMAL_ITEM, ); $items[] = array( 'path' => 'monedas', 'title' => t('Monedas'), 'callback' => 'monedas_page', 'access' => user_access('view Monedas'), 'type' => MENU_SUGGESTED_ITEM, ); return $items; } function monedas_page($arg1=0, $arg2=0, $arg3=0) { return "hola Mundo / Hello World"; } Thanks a lot Kyle. On 12/01/2008, Kyle Mathews <mathews.kyle@gmail.com> wrote:
Use the Menu system: http://api.drupal.org/api/group/menu/5
Kyle
On Jan 12, 2008 7:47 AM, Alex Moreno < al3xmor3no@gmail.com> wrote:
How can i write a specific page for a module? For example, imagine that i have a module called monedas and i need be able to access to a url like:
exactly like, for example, the postcard module. It has a function named postcard_page, but i haven´t find any documentation about this hook.
thanks a lot in advance
-- Research Assistant eBusiness Center @ BYU kyle.mathews2000.com/blog
-- Alejandro Moreno López Publicidad en Buscadores y Marketing Online http://www.tdo.es
participants (3)
-
Alejandro Moreno -
Alex Moreno -
Kyle Mathews