Skip to main content

Drupal

CSS Reset

This is a simple module that adds a CSS Reset at a module level. One benefit of this appoach is that the 'reset' can be loaded before other modules that include some css etc. This means that the 'reset' should only normalise the user agent's styles and not styles that have been defined in other core and contributed modules that may be loaded by Drupal before the theme layer.

https://www.drupal.org/sandbox/2dareis2do/2275019

Date Created

File Managed Alter

This is simple utility module that enables you to increase the length of the 'uri' field used by the 'file_managed' table which is in turn used by Drupal's 'file' entity. This module increases the maximum length from varchar(255) to varchar(2048).

Background

By default, in Drupal there is a restriction of 255 chars on the varchar size or length of the uri field in the file_managed table. In some circumstances this is not sufficient and may result in an exception.

e.g.

Date Created

Social Post X

Social Post X allows you to configure your site to automatically tweet to a user account without human intervention.

Social Post X also integrates with the Rules module.

Features

Social Post X allows you to configure your site to automatically tweet to a user account without human intervention.

Social Post X also integrates with the Rules module.

https://www.drupal.org/project/social_post_x

Date Created

Migrate Process Extract Regex

Migrate Process Extract Regex

This module provides a Migrate process plugin to enable you to parse and extract a $needle (string) from a $haystack (string). This will either return

$match[1] or the orignal $haystack if no match is found.

Use Case

This migrate_process_extract_regex module is useful where developers are handling remote images with the remote_steam_wrapper module. Sometimes remote media assets (pictures etc.) do not contain a valid query string and will fail to import.

Date Created

Migrate Process Remote Image Check

This module provides a Migrate process plugin to enable you to check whether a migrated remote image url/string is in fact a valid address for a media asset such as an image. It does this by requesting each image and see if it returns a valid response.

If this fails, it will attempt to remove any query string to that has been appended to an image to see if removing this helps to generate a successful response.

If the response is not ok, it will fallback to using an empty string so as to avoid any exceptions when trying to migrate the remote image asset.

Date Created

Style Guide

Style Guide Admin is a simple module that enables developers to easily create and preview a style guide for any custom Drupal theme from the admin appearance menu. This has been designed and developed to be used with any custom Drupal theme.

Date Created

Prevent Drupal Scaffolding overriding development services when working with Drupal

When working on Drupal it is often useful to change your local development.services.yml to enable certain development features and make debugging your application easier.

e.g. This is basically taken from default.services.yml file with certain parameters changed to provide a more friendly development environment, depending on what you are working on. This can be adjusted to suit but hopefully will give you an idea. Notice how this gives us the ability to override various parameters and services to suit.