12
votes
4answers
693 views

A metaphor for Drupal module's inner workings

What is the best application workflow metaphor for Drupal module? In PHP frameworks we think MVC-style. How do we think inside Drupal? Asumming I am writing some user-oriented module like Shop, ...
3
votes
1answer
192 views

url cutoff by link module or pagepeeker formatter issue in drupal 7

I have drupal 7 question that may involve some php help. I have created an rss feed from google alerts that I am mapping into fields. I have had success mapping into all the fields except the link ...
7
votes
1answer
145 views

.animate() - Queue Simulation for older jquery Verions (Drupal) Conflict

im searching for a solution to come out with the jquery Version, which Drupal is including natively. Its a older version. Actually there are nooo problems - but one :D I use a .animate() function with ...
2
votes
2answers
3k views

Drupal module nested menu items

In implementing hook_menu for a module, I am trying to put some items into a submenu. So far I have something like this $items['MyModule'] = array( //... 'page callback' => ...
1
vote
2answers
437 views

drupal module jquery php script location issue

I am developing a module which has a jquery script with some ajax code. The ajax code calls a php script located in the same location as the jquery script. My problem is, ajax appends the domain name ...
1
vote
1answer
559 views

Drupal 7: naming node with Theme Developer

I'm working on a Drupal 7 website. I need a custom node for a page, and I used Theme Developer module to find the candidate name for the node which I attached screenshot below. But it doesn't take ...
0
votes
1answer
91 views

Modify how a node in drupal will look when viewed

I have some text stored in the body field of a custom content type called 'protocol'. What is stored in the body field is not exactly what I want to be seen when you view the node. Either as full or ...
0
votes
1answer
506 views

Drupal 7, how i can acces my module, and view admin page?

I installed the last version of Drupal, and its on my localhost/drupal ... When i'm trying to go to localhost/drupal/admin its going to Server Configuration details, like a wamp page or something, and ...
0
votes
1answer
2k views

Drupal 7 - How to assign a variable to a template?

So..I have created a module called "moon". In the module, i use moon_menu to assign a menu that calls back moon_page to display something to the browser. function moon_page(){ $moonsvariable = 'hi ...
0
votes
2answers
1k views

Drupal hook_menu from module for admin menu

I have a custom module "menu_mods" for adding menu items to the admin menu. It's not adding it. I want the link to show in the Navigation menu. I'm using the Garland theme for the admin pages. Here is ...
0
votes
3answers
562 views

drupal--hook_menu

the info file is right,the following is my module file code. when i access the http://localhost/drupal/mymenu why it can't work. <?php function mymenu(){ $item = array(); $item['mymenu'] ...
-1
votes
1answer
101 views

How to allow multiple blocks in a module of Drupal

I am trying to make a module for Drupal 7 that provides a block and has certain configuration settings. Now what I want is that I want to provide 5 blocks to the user so that they can use different ...