New answers tagged

2

The default is actually -10 years Since yours is longer, scroll own and select "Other" and type -25 Save settings Now when you edit again, you should see


1

Are you using scheduler module and Boost Cache Clear module? I had the same issue and I disabled Boot Cache Clear and it works now.


0

In drupal 8 you can't use entityFieldQuery, instead use entityQuery. something like the following will return a list of user with the required role ('editor' in the example). $uids = \Drupal::entityQuery('user') ->condition('status', 1) ->condition('roles', 'editor') ->execute(); $users = User::loadMultiple($uids); foreach($users as $user){ ...


-1

Visit jquery update settings (intall, if it's missing) and set a different jquery version on "Alternate jQuery version for administrative pages" section.


3

No. You don't need to execute permissions on those scripts in a production server environment. The only reason you'd need those scripts executable on a server is for running code testing utilities (e.g. simpletest test cases, generating dummy content, etc.) on the codebase. Unless you're wanting to run some of those testing utilities on a CI server, they don'...


0

I also can recommend the Past Log module. It offers you enhanced logging capabilites (including backtrace) out of the box!


0

Based on Pierre answer i made a rule reacting on 'Drupal is initializing', condition: Text comparison, Text: [site:current-page:path], Matching text: clone/confirm, and i made a custom rules action module (after_clone.rules.inc) that returns NID of the cloned node, NID of cloned node is all you need, code of my rules action: <?php /** * Implement ...


2

There is no need to programmatically alter it, as there is a configuration form that allows you to change it, the README.txt says The image style used for the background image can be changed by going to "admin/config/system/entity_background_image" There is also a link to it in configuration


0

The accordion is not accessible because it uses an extremely old version of Jquery UI that is included in Drupal core. The latest version of JqueryUI fixes several accessibility issues. You need to Install the v3 series of Jquery update module. Unfortunately the jquery update module has at the moment still a very old version of JQueryUI (but there are some ...


0

Looks like a bug occurs on this line for the 2nd Carousel where $key never equals $first_key – No Sssweat That's exactly the answer! <!-- Carousel items --> <div class="carousel-inner" role="listbox"> <?php foreach ($rows as $key => $row): ?> <div class="item <?php if ($key == $first_key) {...


0

How to hide or remove title for content type. 1 Install Automatic Entity Label 2 Install Token For Content Type News go to D7 admin/structure/types/manage/news/auto_label D8/9 admin/structure/types/manage/news/auto-label Then select an option that fit your solution, in my case I selected: Automatically generate the label and hide the label field In the ...


0

You are passing the receiver email in the $to variable, so... //here you load the user that has the $to email $receiver = user_load_by_mail($to); //here you have the preferred language of that user $langcode = $receiver->getPreferredLangcode(); this worked for me.


0

For Drupal 7: Domain access would make more sense and you could share content between sites as well as views, themes, styles, modules. In 8 Group (not organic groups) uses a domain access feature as well (a separate module). You mentioned multisite in the title which is another option (share code, separate dbs).


0

From Drupal 8 you can easily drag and drop that field within the /user/register form. Up , down, visible, invisible. Super cool! Link: "/admin/config/people/accounts/form-display/register"


0

D7: I would also use node_delete_multiple(). This is also the way that Devel generate handles it, https://git.drupalcode.org/project/devel/-/blob/57e32c63089216da92efe811212bd4f6026ba307/devel_generate/devel_generate.inc#L605-625 /** * Handle the devel_generate_content_form request to kill all of the content. * This is used by both the batch and non-batch ...


0

There's no way for the module out-of-the-box to block cookies created by 3rd party components. That's a simple fact of life. For example, if you by some means inject the code to embed a YouTube video on your site, it'll serve YouTube cookies to visitors to that page and EU Cookie Compliance won't be able to block them. When a YouTube video is served there is ...


0

function get_view_query_string_fast($view_name, $view_display, $pager = TRUE) { // Get view and set display. $view = views_get_view($view_name); $view->set_display($view_display); // Disable Pager. if (!$pager) { $pager = $view->display_handler->get_option('pager'); $pager['type'] = 'none'; $view->display_handler->...


1

As you can see in line 264 of webform.submissions.inc Webform uses submission as the key. Thus it needs to be named mimemail-message--webform--submission.tpl.php There is no way to target a specific webform without some extra custom code work. mymodule.module function mymodule_mail_alter(&$message) { if ($message['module'] == 'webform') { $nid = $...


0

I had the same error, and in my case the error was in my.ini (using Xamp here) the setting in question was max_allowed_packet which was too small! changing it seems to have fixed a lot of tiny error i had been getting including the error 500 when enabling any module. EDIT : whoa i just noticed that was from 7 years ago... not sure what the policies are about ...


0

for the Drupal8 we can do like: $query->addExpression('CAST(n.title AS SIGNED)', 'title_as_int'); $query->orderby( 'title_as_int', 'ASC');


Top 50 recent answers are included