You are here

openpublic_services.features.inc in OpenPublic 7

File

modules/apps/openpublic_services/openpublic_services.features.inc
View source
<?php

/**
 * @file
 * openpublic_services.features.inc
 */

/**
 * Implements hook_ctools_plugin_api().
 */
function openpublic_services_ctools_plugin_api($module = NULL, $api = NULL) {
  if ($module == "context" && $api == "context") {
    return array(
      "version" => "3",
    );
  }
  if ($module == "strongarm" && $api == "strongarm") {
    return array(
      "version" => "1",
    );
  }
}

/**
 * Implements hook_views_api().
 */
function openpublic_services_views_api($module = NULL, $api = NULL) {
  return array(
    "api" => "3.0",
  );
}

/**
 * Implements hook_node_info().
 */
function openpublic_services_node_info() {
  $items = array(
    'services' => array(
      'name' => t('Services'),
      'base' => 'node_content',
      'description' => t('A description of a specific service that the organization or agency provides to site users (such as "tax preparation" or "grant programs").'),
      'has_title' => '1',
      'title_label' => t('Title'),
      'help' => '',
    ),
  );
  drupal_alter('node_info', $items);
  return $items;
}