An error in the redirect module leads to the following warnings/notices on enabling the redirect module:
* Notice: Undefined index: fieldable in field_group_menu() (regel 48 van D:\Projecten\Drupal7\single-nl\sites\all\modules\field_group\field_group.module).
* Notice: Undefined index: fieldable in field_ui_menu() (regel 72 van D:\Projecten\Drupal7\single-nl\modules\field_ui\field_ui.module).
On debugging I found the following code to assume an entry ''taxonomy_term' will exist in the $info array:
file: redirect.module
/**
* Implements hook_entity_info_alter().
*/
function redirect_entity_info_alter(&$info) {
$info['node']['default path'] = 'node/[id]';
$info['taxonomy_term']['default path'] = 'taxonomy/term/[id]';
$info['user']['default path'] = 'user/[id]';
}
However, if the taxonomy module is not enabled, this entry will not exist, leading to the creation of an otherwise empty entity_info element, in turn leading to the given notices. So a check on existence of this element is appropriate.
| Comment | File | Size | Author |
|---|---|---|---|
| ScreenHunter_017.jpg | 29.5 KB | fietserwin |
Comments
Comment #1
dave reidAh good find. Fixing now...
Comment #2
dave reidFixed with http://drupal.org/cvs?commit=474596 in CVS. Thanks for reporting!