Commit 36266e9b authored by Alex Weber's avatar Alex Weber

Issue #1839742 by alexweber: Fixed Strict mode notices during installation.

parent 45af2b21
......@@ -42,8 +42,9 @@ function menu_token_ctools_plugin_type() {
function menu_token_menu_token_plugins() {
$plugins = array();
$entity_info = entity_get_info();
$entities = variable_get('menu_token_entities', drupal_map_assoc(array('node', 'user')));
foreach (variable_get('menu_token_entities', array('node', 'user')) as $entity => $enabled) {
foreach ($entities as $entity => $enabled) {
if ($enabled) {
$plugins["{$entity}_context"] = array(
'type' => $entity,
......@@ -561,4 +562,4 @@ function menu_token_menu() {
);
return $items;
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment