Commit 7adf3432 authored by Daniel Korte's avatar Daniel Korte Committed by joelpittet

Issue #3020425 by Daniel Korte, joelpittet: Add more time period options

parent 2fc0c26e
......@@ -52,8 +52,8 @@ function node_authlink_form_node_type_form_alter(&$form, FormStateInterface &$fo
'#description' => t('What operations will be temporarily given to authorised user for the node. This not affect users who is authorised yet.'),
];
// Time periods: none, 1 day, 1 week, 4 weeks
$time_periods = [0, 86400, 604800, 2419200];
// Time periods: none, 1 day, 1 week, 4 weeks, 3 months, 6 months, 1 year
$time_periods = [0, 86400, 604800, 2419200, 7776000, 15552000, 31536000];
$period = node_authlink_build_options($time_periods);
$period[0] = '<' . t('disabled') . '>';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment