Empower site builders and administrators with no-code tools to setup, enhance, configure, or maintain the site.

CSS Options

Example of css options on theme settings page

The CSS options module enables theme developers to easily expose some options around the included CSS within the site via the theme settings form.

This module does the housekeeping for managing the inclusion of conditional CSS within the site so the theme developer can focus on design.

Instructions

  1. download and enable the css_options module
  2. Within your theme create a css_options directory.
  3. within your theme's css_options directory create a directory for each option you want exposed to the user with the following naming convention. "YOUR OPTION.option". The end user will see a select choice with "YOUR OPTION" as its title.
  4. Within each option directory add one css file that represents the css corresponding to the choice. Name your file with the standard '.css' extension.

Example

If I create the following directory structure in my theme

  • css_options
    • Font Family.option
      • Sans-Serif (Helvitica, Arial).css
      • Serif (Georgia, Times).css

The css_options module will expose a "Font Family" option on the theme settings page with the following choices;

  • No Additional Style
  • Sans-Serif (Helvetica, Arial)
  • Serif (Georgia, Times)

Mail Headers

Control and modify any (almost any) mail header. Mail Headers allows you to:

  • Limit the allowed domains for the sender e-mail address used on any e-mail sent through Drupal.
  • Customise almost any mail header with the use of tokens (Version 2.x).
  • Allow HTML to be sent from any module using drupal_mail.

Default FROM address

This module checks every mail being sent and compares the "From" header to a list of allowed domains. If it doesn't match any, the default site mails is used instead.

This is very useful if using an SMTP service like MailJet where you have to validate all domains/addresses before they are allowed through their system, which will block all mail sent using the default Drupal contact form, which uses the email field on the form as the From address.

For the geeky ones, what we change is the "From" header in $message["headers"]["From"] and set the "Reply-To" as the original from.

Customise (almost) any Mail Header (Version 2.x)

Integrated with tokens, this module allows you to customise the headers from the mails sent by Drupal, with any value you feel like using! Plus it integrates with tokens, which gives you even more flexibility.

HTML mail

We also implement our own MailSystem class which overrides the format() method allowing html mails to be sent.

Nodetype Info Tab [D7]

Description:

This (mini) module adds the nodetype to the "Edit" tabs title in brackets.

Example: "Edit (Page)" or "Edit (Story)" or "Edit (Panel)", ... instead of just "Edit"

Pages

Subscribe with RSS Subscribe to RSS - Administration tools