Questions tagged [.info]

Use it for questions about the file containing information about modules and themes.

Filter by
Sorted by
Tagged with
4 votes
3 answers

Is there any way to force https:// to be used for assets and still be able to define a theme CSS files in its .info file?

I have a theme which defines its CSS files in its .info file, for example with a line like the following. stylesheets[all][] = css/style.min.css The site is accessed using https://, but for some ...
John's user avatar
  • 105
1 vote
1 answer

Problem with Jquery in Durpal 7 [closed]

I am using Drupal 7 and bootstrap theme, I also have installed jquery update module, Now I have created a js (jquery) file and saved it under js folder in bootstrap theme, I tried to call my js file ...
the_summer_bee's user avatar
3 votes
1 answer

How to get update to check Feature Server

I have a custom module hosted on a feature server. When I update Drupal how can I get it to check the Feature Server to see if there is an update there? In the back of my head I thought it was ...
user13134's user avatar
  • 558
0 votes
1 answer

How to solve “This version is not compatible with Drupal 7.x and should be replaced” error?

Similar to but the solution doesn't work: How to solve "This version is not compatible with Drupal 7.x and should be replaced" error? I've followed everything I can find but a basic custom ...
o_O's user avatar
  • 362
0 votes
2 answers

Book: Drupal 7 Module Development (directions caused weirdness)

I'm reading a book, Drupal 7 Module Development, and I'm hitting some very weird outputs. I created a folder: mysite/sites/default/module/first Inside this folder I created two files. ;...
randomblink's user avatar
8 votes
2 answers

How to solve "This version is not compatible with Drupal 7.x and should be replaced" error?

I keep getting, "This version is not compatible with Drupal 7.x and should be replaced." error. Could you please look at the content of my .info file and tell me what is wrong with it: name = jeanb ...
Davit Magaldadze's user avatar
1 vote
1 answer

Is it a good idea to load the css files from page.tpl file instead of .info file

I am just curious, because i am trying to get my site working for both IE and chrome, and I want it to load only a specific css file. Conditional stylesheets arent working for me, as I cannot see the ...
user1675999's user avatar
2 votes
2 answers

Splitting up the .module file

I wrote my first module which happens to be in Drupal 7. The module uses hook_menu to correlate URLs with three custom-coded, page call backs. These callback functions that construct the custom html ...
user1706487's user avatar
2 votes
1 answer

Version numbers of dependencies in testing

If I'm submitting a test to the testbot, and my module requires a dev version of another module in order to function properly, is it adequate to declare the version in my module's .info ...
beth's user avatar
  • 9,087
5 votes
4 answers

How can you force a stylesheet reload in Drupal7?

This is about that old trick of tacking a fake query argument onto the URL of a stylesheet (e.g., <link rel="stylesheet" type="text/css" href="">) so that, ...
Jim Miller's user avatar
  • 1,948
1 vote
3 answers

Autoload files by patterns instead of listing each file

Drupal's "autoloading" requires one to include the files in files[] declarations in the .info file. When there are a lot of files, this becomes: A large, huge, list. Hard to maintain. Is there a ...
berkes's user avatar
  • 3,100
0 votes
0 answers

Unset specific css files defined in the .info file

I am trying to unset specific CSS files that I have included in the .info file in specific languages. For example, I have Arabic as a language option in my website, and I am including the ar.css file ...
paranod's user avatar
  • 365
2 votes
3 answers

Which modules should be listed as dependency of my module?

If my module calls a function of another module, that other module should be listed as a dependency of my module. Now my module only provides some field handlers for the Views module. On the one hand,...
Oswald's user avatar
  • 4,916
0 votes
3 answers

Getting .info file not found in my custom module, even though it does contain an .info file

I am trying to install my custom module, but the error I get is: modulename.tar.gz does not contain any .info files. My module tar.gz file does indeed contain a .info file. I have installed other ...
vintorg's user avatar
  • 1,993
0 votes
1 answer

Why do I have to add main-menu under features[] in the theme info file?

I have seen other themes that just define regions and then use drupals theme() function in the page.tpl.php to print the Main menu wherever the developer pleases. This was not the case for me, and I ...
bitfed's user avatar
  • 535
1 vote
2 answers

Module version format

I would like to know what is the correct version format for custom modules in Drupal 7. I see some contributed modules come with 7.x-1.2-rc1. I don't know what is rc1. When I name my custom module ...
Sithu's user avatar
  • 4,953
2 votes
2 answers

Why isn't my Sub Theme's CSS file showing up?

I created a sub theme which is intended to just have a few color changes and background image changes. The Base theme is called limon. The sub theme is limon_orange. In the sub theme, i have a ...
Ben's user avatar
  • 615
10 votes
5 answers

How does Drupal handle autoloading of classes?

How does Drupal handle autoloading of classes through modules? For instance, if I have an Events module, and I declare a class called Event, and then in the .info file I include the class file, how is ...
rybosome's user avatar
  • 941
2 votes
1 answer

Why am I urged to include my source files via files[] instead of using include_once?

What is the reason of using the .info file to declare the files used from the module, instead of including them at runtime?
Hamster's user avatar
  • 137
8 votes
2 answers

Weighting Javascript in .info files

Drupal 7 adds a new 'weight' option to drupal_add_js so that you can control the order in which Javascript files are added to the page. Is there any way to do this when adding Javascript in .info ...
cam8001's user avatar
  • 1,074
1 vote
2 answers

Can region be defined outside of the theme's .info file?

Basically I'm trying to reverse-engineer a theme that was developed by another guy. The problem is that I'm not yet quite firm on Drupal ground. So I'm looking onto a management page for blocks and ...
jayarjo's user avatar
  • 1,542