Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
if (arg(0) == 'node' && is_numeric(arg(1))) {
$node = node_load(arg(1));
if ($node) {
return $node->uid;
}
}
This code is always runned, it ignores the option.
Comment | File | Size | Author |
---|---|---|---|
#3 | 946368-argument_default_user-fix-3.x.patch | 1.37 KB | dawehner |
#1 | 946368-argument_default_user-fix.patch | 760 bytes | dawehner |
#1 | 946368-argument_default_user-fix-3.x.patch | 738 bytes | dawehner |
Comments
Comment #1
dawehnerHere are the patches
Comment #2
dagmarAlso, if this settings will be a checkbox, it would be nice to see an 'bool' => TRUE, and 'translatable' => FALSE in the option defintions.
Comment #3
dawehnerFixed this changes + the other issue in the 6.x-3.x patch.
There is no option_definition in 6.x-2.x
Comment #4
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted to all branches.