Skip to main content
Home

Drupal 7

Translating strings programmatically

Submitted by Lucas Nesci on Wed, 09/19/2018 - 09:32

Have you ever been in the situation where you had to add [a few] translations on a hook_update instead of importing them from a .po file?

It happened to me several times where I wanted them to be added as part of the database updates, so I found out I could do it using _locale_import_one_string_db().

  • Read more about Translating strings programmatically
Tags
Drupal 7
Translation

How to create fields programmatically

Submitted by Lucas Nesci on Sun, 03/25/2018 - 23:48

In the project I am currently working on, we can say that features is almost a prohibited word and every time we need a new field on a content type, we have to add it programmatically through a database update.

  • Read more about How to create fields programmatically
Tags
Drupal 7

Introducing Webform Selectable Filters

Submitted by Lucas Nesci on Thu, 03/08/2018 - 01:21

Summary

Transform any exposed textfield filter of a webform submissions view into multiple drop-down list.

Summary

Download this module: https://www.drupal.org/sandbox/neschi/2522034

  • Read more about Introducing Webform Selectable Filters
Tags
Drupal 7
INDIUZ