You are here

function sbp_test_node_info in Search by Page 6

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

Implementation of 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 154
Module file for Search by Page testing.

Code

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