nodequeue.install l.369-413 :
Missing parenthesis in the IF condition line.
/**
* Implementation of hook_requirements().
*
* We need the translation_helpers module to enable internationalization for queues.
*/
function nodequeue_requirements($phase) {
$requirements = array();
$t = get_t();
if ($phase == 'install' || $phase == 'runtime' && module_exists('translation') && !module_exists('translation_helpers')) {
$requirements['nodequeue_translation']['title'] = $t('Nodequeue');
$requirements['nodequeue_translation']['severity'] = REQUIREMENT_WARNING;
$requirements['nodequeue_translation']['description'] = $t('To have the nodequeue module work with translations, you need to install and enable the !url
module.', array('!url' => l('translation_helpers', 'http://drupal.org/project/translation_helpers')));
$requirements['nodequeue_translation']['value'] = $t('Translation helpers module not found.');
}
return $requirements;
IF condition :
if ($phase == 'install' || $phase == 'runtime' && module_exists('translation') && !module_exists('translation_helpers')) {
...should be:
if ( ($phase == 'install' || $phase == 'runtime') && module_exists('translation') && !module_exists('translation_helpers')) {
Comments
Comment #1
robloachReasonable.
Comment #2
ezra-g commentedThanks to both of you!
This is committed.