Tagged Questions
1
vote
1answer
31 views
Conflict between with a function in two different modules
I have the same function in two different modules to change the page: node/add.
I need the second one(see below) to override the first one. I implemented hook_install to change their weight but is ...
1
vote
2answers
50 views
How do I insert HTML onto every page?
I've got the following code in my module. I'm trying to get it to insert some HTML, ideally at the start of <body>, but it seems that my call in hook_init() isn't working - what would be the ...
1
vote
1answer
50 views
Drupal 7 Theme Function
I can't get the theme() function to work. Cleared cache too. If I rename the function to:
theme('wow_template', $output') it works but anything other doesn't.
function wow_page() {
$cloud = ...
0
votes
0answers
24 views
Change image styles based on selected theme
I have multiple themes under one installation and using SwitchTheme http://drupal.org/project/Switchtheme to switch between themes as selected by the user. My problem is I have a view displaying ...
0
votes
2answers
29 views
How to add fronted form using custom content type
i new to drupal and i created a custom content type which has few fields(like donation name, value,size etc) .,now i want to add this fields as form for user which they can fill in the fronted,i want ...
0
votes
0answers
8 views
How do I decide whether to put this custom code in a theme or a module? [duplicate]
Possible Duplicate:
Code in the template or in a module?
This is a question every site-builder who dabbles in code must ask her/himself eventually: Does this custom functionality belong in ...
0
votes
2answers
63 views
menus as a block in drupal7
i have created a navigation menu like
home, services, about us, so on and then contact us .. each parent has many child and their own child . it was created sucessfully.
Now what i want to show ...
0
votes
1answer
32 views
Theme specific login redirection?
Anyone know of a way within the theme to redirect to a different url after login?
Theme #1:
Eg. User goes to www.examplesite.com logs in and is taken to www.examplesite.com/front
Theme #2:
Eg. User ...
2
votes
1answer
42 views
Question about the templates
I create a module and implement hook_menu():
function mymodule_menu(){
$items['mymodule/list']=array(/*...*/);
return $items;
}
then I create a theme and create page.tpl.php and ...
0
votes
2answers
54 views
How do I theme a block created with the Views module?
I'm Newbie user in drupal, i need to custom design theme block created for views module.
Example HTML:
<div id="content">
<ul>
<li>
<div ...
0
votes
0answers
71 views
block module template
I am writing module for drupal 7. Module generates block and item list inside that block['content']. When i am using standard theme('item_list', array('items' => $items)) everything works, but when i ...
1
vote
2answers
143 views
Overriding the Blog username breadcrumb in the native Blog module
I want to disable the blog username in the breadcrumb which reads:
Home > Blogs > John's blog > Blog post
I have found the function in the core Blog module:
/**
* Implements hook_view().
*/
...
0
votes
1answer
34 views
add region with module installation
I am developing a module, that when installed, should place an HTML element in a drupal block.
That block, will be inside a region. I would like the region to be added to the theme on module ...
0
votes
1answer
97 views
How to manage the order of the modules execution?
I have a 2 modules which has javascript files modify the height of an element (through jquery).
module one set the height to 100px
module two set the height to 200px
I seems like the module one is ...
0
votes
0answers
97 views
Folders created by drupal default to 48 48 (Apache) ownership, cant use
I have an issue, and I'm wondering if it can be fixed by my own hands, but I DO NOT have access to the server side settings (php ini, apache, etc) just FTP and Database access.
You know for the Files ...