function _answers_answer_installed_fields in Answers 7.4
Returns a structured array.
Defining the fields created by the answers_answer content type.
1 call to _answers_answer_installed_fields()
- answers_install in ./
answers.install - Implements hook_install().
File
- ./
answers.install, line 181 - Install, update, and uninstall functions for the answers module.
Code
function _answers_answer_installed_fields() {
return array(
'answers_related_question' => array(
'translatable' => FALSE,
'locked' => TRUE,
'field_name' => 'answers_related_question',
'cardinality' => 1,
'type' => 'entityreference',
'settings' => array(
'target_type' => 'node',
'handler' => 'base',
'handler_submit' => 'Change handler',
'handler_settings' => array(
'target_bundles' => array(
'answers_question' => 'answers_question',
),
),
),
),
);
}