Drupal-Admin
view release on metacpan or search on metacpan
lib/Drupal/Admin/ModuleState.pm view on Meta::CPAN
257258259260261262263264265266267268269270271272273274275276my
$url
=
$self
->baseurl .
'?q=admin/build/modules'
;
# Get and parse the status page
$self
->mech->get(
$url
);
my
@result
;
# Get all the groups (fieldsets)
my
@group_trees
=
$self
->mech->look_down(
"_tag"
,
"fieldset"
);
foreach
my
$group_tree
(
@group_trees
) {
my
$group
=
$group_tree
->look_down(
"_tag"
,
'legend'
)->as_text
||
$self
->_die(
"Failed to extract module group name"
);
# Get all the checkboxes for that group
my
@chboxes
=
$group_tree
->look_down(
"_tag"
,
"input"
,
"type"
,
"checkbox"
);
foreach
my
$chx
(
@chboxes
) {
my
$name
=
$chx
->attr_get_i(
'name'
);
( run in 1.113 second using v1.01-cache-2.11-cpan-49f99fa48dc )