Commit 8e5a4a87 authored by Amit Goyal's avatar Amit Goyal
Browse files

Issue #1086990 by skruf, eMPee584, fietserwin: Invalid argument supplied for foreach.

parent 2d410d6d
......@@ -334,6 +334,9 @@ function advanced_help_get_topic_hierarchy(&$topics) {
* Add advanced help links to the modules page.
*/
function advanced_help_form_system_modules_alter(&$form, &$form_state) {
if (!isset($form['modules'])) {
return;
}
$advanced_help_modules = drupal_map_assoc(array_keys(advanced_help_get_topics()));
foreach (element_children($form['modules']) as $group) {
foreach (element_children($form['modules'][$group]) as $module) {
......
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