New answers tagged

0

Saw your post on d.o.: https://www.drupal.org/project/domain/issues/1673650 The error you have there seems strange. The argument should be passed to the hook_domain_cron method ?!? How does your code look for mymodule_hook_domain_cron?


0

You can use hook_mail_alter to alter the body of the mail: Something like /** * Implements hook_mail_alter(). */ function YOURMODULENAME_mail_alter(&$message) { // Check here for your mail key if ($message['id'] == 'modulename_messagekey') { $message['body'][] = 'Thank you .. bla bla. Bla bla bla. ';; } } Check here https://...


0

In the value field just enter "never", exactly as it shows on /admin/people


2

In Drupal 8, a workaround is with twig. Choose the option to Override the output of this field with custom text and then use twig to capitalize. {{ my_field|upper }}


0

I was never able to find a workaround for this. I ended up replicating the UI outside of the admin panel and reused a collection of the import functions (I also abandoned the users making "manual" edits.)


-1

Did you checked how the Social Feed module ( https://www.drupal.org/project/socialfeed ) or Facebook Feed Block module ( https://www.drupal.org/project/facebook_feed ) as they allow pulling the Facebook feed from a specific user profile or page? Though, they should ultimately be using the Facebook API but might help with the permissions of the Facebook API. ...


0

In Drupal 8, you need to install the "Webform Views" module to have the webform submission data show up in "Views".


1

Between two batch runs, the data is saved in the database serialized. Before the second batch run, the data is taken from the database and unserialized. __PHP_Incomplete_Class Object tell us that, at the moment the data is unserializes, no GuzzleHttp\Cookie\CookieJarInterface class is available, and objects of that class cannot be unserialized. To retain a ...


1

To retrieve information linked through ER fields you have to add the Relationship for the ER field. The Relationship will open new options you can add to your Views. You will be able to add the Duration Field to your Views after you add the Relationship. That field will use the Relationship by default (it wouldn't work without it).


0

The patch in https://www.drupal.org/project/workbench_moderation/issues/3160301#comment-13758806 fixes the issue.


0

I've created a module and is busy adding it to Drupal site. The code is available here for download. https://github.com/hornlp/drupal_path_guard The intended use of the module is to redirect GUEST / ANONYMOUS users when they access content in Drupal using URL /node/{id}. Many sites make use of URL ALIAS and don't want users necessarily to scan content out of ...


0

I think you need to use a managed_file form element. $user_data = user_load($user->uid); $form['my_imageGallery'] = array( '#type' => 'managed_file', '#title' => t('Image Gallery'), '#default_value' => isset($user_data->field_galeria) ? $user_data->field_galeria : null, '#upload_location' => 'public://...


2

Your second variant is close to the goal. But it needs some edits. Firstly, you should escape all dots in RewriteCond, so it will be RewriteCond %{HTTP_HOST} ^example\.co\.uk$ [NC] Secondly you need to edit RewriteRule to change regular expression and append request uri: RewriteRule ^ https://example.com%{REQUEST_URI} [L,R=301] It also matters where you ...


0

For Drupal 8, You need the following module: https://www.drupal.org/project/views_autosubmit


0

There is a patch for this for anyone else looking for a solution. https://www.drupal.org/project/views_conditional/issues/2690167


0

replace uri with filepath --> POST http://example.com/api/file http/1.1 Content-Type: application/json Content-Length: 343901 Cookie: .............. X-Csrf-Token: ......... {"file":"iVBOR.......Jggg==","filename":"myimage.png","filepath":"public://storage-field-images/myimage.png"} --> END ...


2

Drupal doesn't have an opinion on which flavour or version of Linux you use, just that the system requirements are met. So it looks like your actual question around Drupal is the one you've put in the comments: Does Drupal 7 work with mysql 8.0 The answer to that is no, MySQL 8 is not currently supported by Drupal 7. There are ongoing efforts to make that ...


1

You can switch to HTML display in D8 by clicking on source tab. So that you can retain Full HTML processing and work without output.


0

It sounds like you need to maintain a stable message storage solution until the operation is complete. The D7 core message functions drupal_set_message() & drupal_get_messages() (the core function used when retrieving messages for rendering) are pushing/popping messages to session var, $_SESSION['messages'] These messages are designed around a single ...


0

You can access the current user in D7 via the global $user object global $user; $roles = $user->roles;


4

I sometimes have seen that message with Drupal 7, and I always got confused about why Drupal was asking for FTP access to save files in the same server it was running, and why I didn't get that message in some Drupal 7 installations. Looking at the code used from Drupal to updates the modules, I then discovered Drupal first checks if local file transfers are ...


0

Yes, you can, dowload Printer, email and PDF versions, patch module with Can Panel pages be sent to PDF for rendering?, download wkhtmltopdf libary, place it under /sites/all/libraries, and configure your module like: , and inside panels add print PDF widget like:, done!. EDIT: today 7/7/2020 panles 7 had an upgrade, be carefull, i think patch apply to an ...


Top 50 recent answers are included