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.
hook_install_tasks() has $install_state parameter as well as install_tasks().
Comments
Comment #1
Chi CreditAttribution: Chi commentedComment #2
jhodgdonThat is true, thanks for reporting this issue! This "hook" [it's not really a hook in the normal sense -- it's only for profiles] is called from
http://api.drupal.org/api/drupal/core--includes--install.core.inc/functi...
and it definitely passes in $install_state when it does:
However, I'm not happy about the documentation line that is added. The hook that is being documented here just lists the tasks. Saying "This is passed along to each task, so it can be modified if necessary." doesn't make sense here, I think?
Comment #3
cweagansUpdating tags per http://drupal.org/node/1517250
Comment #4
Albert Volkman CreditAttribution: Albert Volkman commentedI agree.
Comment #5
jhodgdonLooks good, thanks!
Comment #6
webchickWe need the datatype here, if I'm not mistaken.
Comment #7
Albert Volkman CreditAttribution: Albert Volkman commentedDatatype'd.
Comment #8
jhodgdonComment #9
jhodgdonThanks! Committed to 8.x and 7.x.