You are here

function commons_posts_strongarm_alter in Drupal Commons 7.3

Implements hook_strongarm_alter().

File

modules/commons/commons_posts/commons_posts.module, line 76

Code

function commons_posts_strongarm_alter(&$items) {

  // Expose the post content type for integration with Commons Radioactivity
  // and Commons Groups.
  foreach (array(
    'commons_radioactivity_entity_types',
    'commons_groups_entity_types',
  ) as $key) {
    if (isset($items[$key])) {
      $items[$key]->value['node']['post'] = 1;
    }
  }
}