Questions tagged [.info]

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

Filter by
Sorted by
Tagged with
5 votes
2 answers
374 views

How to restrict a module to a specific core version?

Drupal 8.3 introduced some changes, which broke a custom module; fixing the changes causes the module to break in previous Drupal versions. One way to handle this would be to require Drupal core to ...
amit's user avatar
  • 444
4 votes
3 answers
4k views

How can I disable CSS styles from a core module using libraries-override?

I'm trying to disable the CSS styles from the layout discovery module in my theme.info.yml file. I've tried several options, but I can't seem to get it to work. This is what I have now. libraries-...
Nate Dillon's user avatar
4 votes
3 answers
11k views

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
10 votes
5 answers
10k views

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
9 votes
2 answers
2k views

How to make a theme depend on a module?

My theme requires multiple modules to be install before it is fully functional. How can one set module dependency in a theme, so that when a user enables the theme, it will also enable the required ...
latvian's user avatar
  • 807
9 votes
1 answer
2k views

Adding a dependencies in theme info file

Can I use dependencies[] = module name in the theme.info file? I want to create a drupal theme where I using some dependencies module, if I able to mention the dependencies in theme info it will easy ...
Aryashree Pritikrishna's user avatar
8 votes
2 answers
3k views

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
562 views

How do I enable a custom JS file in my Drupal site? [duplicate]

In my Drupal themes' folder I've created a file named "custom-js.js". I created this file to use 2 jQuery manipulations on a small text block that appears in all pages of the site. My question is, ...
user avatar
0 votes
2 answers
3k views

Can I add external js and css via module info files?

I have read that I can add js and css file via .info files. Can I add external css and js files there as well? Eg http://somewhere.com/in_a_galaxy
giorgio79's user avatar
  • 4,597
0 votes
1 answer
160 views

Need help defining IE specific stylesheet with Zen Starter-kit and Conditional Stylesheet Module

I need help defining a conditional IE stylesheet in my .info file. I am using the Zen starterkit as my base theme, and I have the conditional stylesheet module installed and enabled. I have added an ...
e.shell's user avatar
  • 70
0 votes
1 answer
77 views

Is it possible to declare a Javascript library dependency at Hook.info? [closed]

Below is my module.info file: name = myid description = Creates an ID template, Inputs ID form, Prints an ID and View System Statistics . core = 7.x package = CSU ;Jquery Library dependencies[] = ...
user avatar