Created
March 1, 2023 17:21
-
-
Save magnum/79eec4e18bb9feeb1458912f869f8f3e to your computer and use it in GitHub Desktop.
list drupal7 modules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
const data = []; | |
$("fieldset").each(function(i,elCategory){ | |
const category = $(elCategory).find('.fieldset-title').text().replace("Nascondi ", ""); | |
$(elCategory).find("tr").each(function(i,elModule){ | |
const title = $(elModule).find("strong").text(); | |
const active = $(elModule).find("input[type='checkbox']:checked"); | |
data.push({ | |
category: category, | |
title: title, | |
active: active | |
}); | |
}) | |
}); | |
console.table(data) | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment