[development] page for a module
Alejandro Moreno
alejandro.moreno at tdo.es
Sat Jan 12 17:17:37 UTC 2008
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 at 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 at 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:
> >
> > 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
> >
>
>
>
> --
> Research Assistant
> eBusiness Center @ BYU
> kyle.mathews2000.com/blog
--
Alejandro Moreno López
Publicidad en Buscadores y Marketing Online
http://www.tdo.es
More information about the development
mailing list