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.
How do you shell_exec() in a computed field? Or is this even allowed?
$command = "some_command_here";
$node_field[0]['value'] = shell_exec($command);
Does not seem to work...
Comments
Comment #1
halloffame CreditAttribution: halloffame commentedTried a direct approach but still...
$node_field[0]['value'] = shell_exec('some_command_here');
Comment #2
dqdDue to the Drupal core life cycle policy and security support advisery, Drupal 6 is no longer supported. So issues for Drupal 6 cannot be longer maintained. The project maintainer has asked for closing all D6 issues to clean up the issue queue. Feel free to reopen the issue if required or set it to "needs to be ported" and latest D8 dev version, if the issue discusses a still missing feature which can be implemented in the D8 version.