New answers tagged

0

The solution is using Image Style Warmer


1

It's a hook used from the Features module. Truly, the feature.api.php file, which should contain a description of all the hooks used by a module, contains a description for hook_field_default_fields_alter(). Deprecated as of 7.x-2.0. Alter the default fields right before they are cached into the database. @param array[] &$fields By reference. The fields ...


0

No idea why setLimit(0) doesn't work as expected, but an alternative is to act as though you had limited the results to 0. When you add a contextual filter to a view, one of the options for When the filter value is NOT available is to Display contents of "No results found". This seems to be handled by ArgumentPluginBase::defaultEmpty(), which looks ...


0

You can alter and save the title to any available field using Automatic Entity Label https://www.drupal.org/project/auto_entitylabel


1

In Drupal 8, there's an easy way to do this. function MYMODULE_form_user_form_alter(&$form, &$form_state) { // Remove the fieldset. // The default of 'details' creates a fieldset. $form['timezone']['#type'] = 'container'; }


2

Yes drush has hooks for running code before all commands or in this case just before cache:rebuild. See https://github.com/consolidation/annotated-command#hooks. See @pre-command hook for example.


Top 50 recent answers are included