Skip to content

Instantly share code, notes, and snippets.

<?php
$base_dir = __DIR__ . '/PATH_TO_SITE/sites/all/modules/features';
function drupal_parse_info_format($data) {
$info = array();
$constants = get_defined_constants();
if (preg_match_all('
@^\s* # Start at the beginning of a line, ignoring leading whitespace