function search_api_test_insert_item in Search API 7
Form callback for inserting an item.
1 string reference to 'search_api_test_insert_item'
- search_api_test_menu in tests/
search_api_test.module - Implements hook_menu().
File
- tests/
search_api_test.module, line 43 - Test functions and classes for testing the Search API.
Code
function search_api_test_insert_item(array $form, array &$form_state) {
return array(
'id' => array(
'#type' => 'textfield',
),
'title' => array(
'#type' => 'textfield',
),
'body' => array(
'#type' => 'textarea',
),
'type' => array(
'#type' => 'textfield',
),
'keywords' => array(
'#type' => 'textfield',
),
'prices' => array(
'#type' => 'textfield',
),
'submit' => array(
'#type' => 'submit',
'#value' => t('Save'),
),
);
}