Linked Questions

0
votes
3answers
858 views

Is there a way to call "access callback" with parameters? [duplicate]

I have: function hook_menu() { $items = array(); $items['experiment-2'] = array( 'title' => 'Experiment 2', 'page callback' => 'drupal_get_form', 'page ...
0
votes
1answer
105 views

Get ID from a URL in drupal? [duplicate]

I have cretad a menu for edit a form in drupal... Code: function pricepackages_menu() { $items = array(); $items['membership/packages'] = array( 'title' => t('Add Membership ...
0
votes
1answer
31 views

Restrict permission to custom modules [duplicate]

I am using drupal 7, and I have created a custom module. This module consists of a form that can be used for adding records to the database. But I saw that the link to accessible to all the users, ...
0
votes
0answers
22 views

Drupal page is not found error is showing [duplicate]

I am working on a project where I created a custom module to store data into database from a form. It is working fine. But now I am working on how to fetch the data from database and show the data in ...
1
vote
1answer
20 views

hook_menu does not match [duplicate]

I have a module where I try to catch an url to use a specific function. function my_module_menu(){ $items['beneficiaire/commande'] = array( 'page callback' => 'test_view', ); ...
0
votes
0answers
20 views

How to get the parameters in hook_menu function correct? [duplicate]

I'm developing my first custom module and I need some help with it. When a user is clicking on the following <a download=”filename.docx” href="exporttoword/567?xml=/xmlcv&template=/internal....
13
votes
5answers
11k views

Force a page to be rendered in admin theme (overlay mode)

Is there a way to force a page to be rendered in admin theme, Like pages that their path begins with 'admin/'?
15
votes
2answers
7k views

How to create a empty module? [closed]

What is the most basic valid module one can create in Drupal? It would be useful to have a simple blueprint available, for anyone just getting started with Drupal.
0
votes
2answers
1k views

(custom )Autocomplete won't work when the user is not logged

I'm kind of new to drupal (been working with it for 2 months) and i seem to hit a wall with this issue . I've written a little module to allow my users to find phone numbers quickly . It uses ...
0
votes
3answers
310 views

How to use Form API

I'm new to drupal, and especially new to drupal form API. I see all the documentation which seems to make sense. They miss one key instruction that you need to create .module / .info files. I have ...
0
votes
4answers
459 views

Can we use the same path for a different route?

Are we allowed to use the same path for two different routes? For example, can I use the following code? function mymodule_menu() { $items['myUrl/dboperation'] = array( 'title' => 'some ...
1
vote
1answer
308 views

How do I render a node queue as custom JSON?

What would be the most sensible way to render a nodequeue queue in a custom JSON format (using Drupal 6) We have a nodequeue that is both included in the UI in various places and served in a RSS feed....
0
votes
1answer
294 views

"Undefined index: link path in menu_link_save() (line 3113 of /includes/menu.inc)" [closed]

I have a new Drupal installation; when I installed my first module, I got the following error: Undefined index: link path in menu_link_save() (line 3113 of /includes/menu.inc). error. I have seen ...
2
votes
1answer
195 views

trouble with hook_menu

I am trying to set up a new menu item in Drupal 7 and not having any luck. I've tried several examples and have been successful at this in the past, but this is just not working. The following code ...
0
votes
2answers
73 views

the menu is not being displayed when the first parameter is user

My problem is as follows the path user/%user_uid_only_optional/profile is not displayed. If I try a variation of this and instead of having user, I replace user with usr the menu items is displayed. I ...

15 30 50 per page