Comments

e_lebescond created an issue. See original summary.

e_lebescond’s picture

StatusFileSize
new3.36 KB
e_lebescond’s picture

o'briat’s picture

Status: Active » Needs review
killua99’s picture

+++ b/eu_cookie_compliance.module
@@ -184,6 +184,7 @@ function eu_cookie_compliance_page_attachments(&$attachments) {
+      'cookie_lifetime'      => !empty($config->get('cookie_lifetime')) ? $config->get('cookie_lifetime') : '100'

I'm against this internal checks. Use a hook_update_N() and fill this config and just do a get only.

For the rest looks ok.

e_lebescond’s picture

StatusFileSize
new4.55 KB

Patch updated. Now using a hook_update_N().

Status: Needs review » Needs work

The last submitted patch, 6: 2850699-configurable-cookie-lifetime.patch, failed testing.

e_lebescond’s picture

Status: Needs work » Needs review

I am newbie with Drupal ecosystem and I don't understand why my last submitted patch failed testing.

@killua99 Any idea?

svenryen’s picture

We have such checks in the code already (for example on line 186), and it's a common code for Drupal sites. I would say this does not require an update hook. I'll look into why this is failing and provide an updated patch.

svenryen’s picture

-

svenryen’s picture

The field title was a bit verbose, so I named it "Cookie Lifetime" and moved your title into the description. I also added $this->t() instead of just t() for translation and placed the field inside the Advanced section of the form. Otherwise looks great! Here's the updated patch.

  • svenryen committed 94bb0b2 on 8.x-1.x authored by e_lebescond
    Issue #2850699 by e_lebescond, svenryen: Configurable cookie lifetime
    
svenryen’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.