You are here

function _answers_question_installed_fields in Answers 7.4

Returns a structured array.

Defining the fields created by the answers_question content type.

1 call to _answers_question_installed_fields()
answers_install in ./answers.install
Implements hook_install().

File

./answers.install, line 140
Install, update, and uninstall functions for the answers module.

Code

function _answers_question_installed_fields() {
  return array(
    'question_locks' => array(
      'translatable' => FALSE,
      'locked' => TRUE,
      'field_name' => 'question_locks',
      'cardinality' => FIELD_CARDINALITY_UNLIMITED,
      'type' => 'list_text',
      'settings' => array(
        'allowed_values' => array(),
        'allowed_values_function' => 'answers_locking_modules',
      ),
    ),
  );
}