You are here

function spaces_announce_spaces_settings in Spaces 5.2

Same name and namespace in other branches
  1. 5 spaces_announce/spaces_announce.module \spaces_announce_spaces_settings()

Implementation of hook_spaces_settings

File

spaces_announce/spaces_announce.module, line 18

Code

function spaces_announce_spaces_settings() {
  $items = array();
  $content_types = node_get_types('types');
  foreach ($content_types as $k => $type) {
    if (variable_get('spaces_announce_' . $k, false)) {
      $items[$k . '_announce'] = array(
        'label' => t('!type Announcements', array(
          '!type' => $type->name,
        )),
        'description' => t("Accept incoming !type annoucements", array(
          '!type' => $type->name,
        )),
        'options' => array(
          '0' => 'Off',
          1 => 'On',
        ),
      );
    }
  }
  return $items;
}