You are here

paragraphs_id_test.features.inc in Paragraphs ID 7

File

tests/paragraphs_id_test/paragraphs_id_test.features.inc
View source
<?php

/**
 * @file
 * paragraphs_id_test.features.inc
 */

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

/**
 * Implements hook_node_info().
 */
function paragraphs_id_test_node_info() {
  $items = array(
    'pp_test_landing_page' => array(
      'name' => t('PP Test Landing page'),
      'base' => 'node_content',
      'description' => '',
      'has_title' => '1',
      'title_label' => t('Title'),
      'help' => '',
    ),
  );
  drupal_alter('node_info', $items);
  return $items;
}

/**
 * Implements hook_paragraphs_info().
 */
function paragraphs_id_test_paragraphs_info() {
  $items = array(
    'pp_test_paragraph_bundle' => array(
      'name' => 'Test Paragraph Bundle',
      'bundle' => 'pp_test_paragraph_bundle',
      'locked' => '1',
    ),
  );
  return $items;
}

Functions