Seeing this warning when installing nodewords_og:
Invalid argument supplied for foreach() common.inc:919
strtr(): The second argument is not an array common.inc:936
In function nodewords_og_install(), the drupal_set_message should read:
drupal_set_message(t("Please see the README.txt file included with the Nodewords module for instructions on customizing the theme to make this work correctly."), 'warning');
with 'warning' as a second argument for drupal_set_message, not for the t() function.
Comments
Comment #1
djbobbydrake commentedAlso, it's probably best to change the drupal_set_message from 'warning' to 'status'. When running drush updb as a Hudson/Jenkins job, it will make it appear as if there's an error in the updb, when there really isn't an error.
Comment #2
damienmckennaThis is a duplicate of #1395326: Activated open graph protocol: warning: Invalid argument supplied for foreach() . Also, I'm leaving it as a warning instead of just a status message as the output will not work correctly unless that important step is made; you might want to follow #1379602: Add hook_requirements() to help test for the OG theme customizations, I *may* change this message's type when that feature is implemented.
Comment #3
djbobbydrake commentedThanks for the follow-up. I've followed the other issue.
Comment #4
damienmckenna