Skip to main content
5 events
when toggle format what by license comment
Jul 30, 2023 at 14:24 comment added avpaderno Since the question is about a module and it does not explicitly say where the file is located, we can assume the file is part of the module. In this case, this answer is correct. If then the file is not in the same directory containing the .module file, but still part of the module files, the OP just need to appropriately change '/options.txt'.
Jul 29, 2023 at 23:06 vote accept David
Aug 13, 2023 at 19:59
Jul 29, 2023 at 11:38 comment added 4uk4 The OP tried to put the file anywhere so that file('options.txt') is working, which is not possible. You don't need to move the file, you need more code to get it working and then the position of the file within the module doesn't matter, you can read any file.
Jul 29, 2023 at 11:19 comment added mona lisa I think what the question is doing is technically identical to this answer but with less code.
Jul 29, 2023 at 9:34 history answered 4uk4 CC BY-SA 4.0