Skip to content

Instantly share code, notes, and snippets.

@baisong
Created August 16, 2012 14:01
Show Gist options
  • Select an option

  • Save baisong/3370329 to your computer and use it in GitHub Desktop.

Select an option

Save baisong/3370329 to your computer and use it in GitHub Desktop.
<?php
foreach ( $features as $name => $feature ) {
$info = $feature->info['features'];
foreach ($info['node'] as $nodetype) {
if ($ret_all || (isset($site_features[$name]) && in_array($site_features[$name], $privacy))) {
$bundles[$nodetype] = $feature->info['name'];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment