You are here

function sbp_test_node_info in Search by Page 7

Same name and namespace in other branches
  1. 6 tests/sbp_test.module \sbp_test_node_info()

Implements hook_node_info().

Defines two node types, so that they can be set up for searching or not searching.

File

tests/sbp_test.module, line 179
Module file for Search by Page testing.

Code

function sbp_test_node_info() {
  return array(
    'sbp_indexed' => array(
      'name' => t('SBP Indexed'),
      'base' => 'sbp_test',
      'description' => t('Content to be indexed for searching in tests'),
      'has_title' => TRUE,
    ),
    'sbp_hidden' => array(
      'name' => t('SBP Hidden'),
      'base' => 'sbp_test',
      'description' => t('Content not to be indexed for searching in tests'),
      'has_title' => TRUE,
    ),
  );
}