You are here

function _answers_field_question_locked_p in Answers 6

Same name and namespace in other branches
  1. 6.2 answers.install \_answers_field_question_locked_p()
1 call to _answers_field_question_locked_p()
answers_update_6100 in ./answers.install
Implementation of hook_update_n()

File

./answers.install, line 45

Code

function _answers_field_question_locked_p() {
  $array = array(
    'field_name' => 'field_question_locked_p',
    'type_name' => 'question',
    'display_settings' => array(
      'weight' => '6',
      'parent' => '',
      'label' => array(
        'format' => 'above',
      ),
      'teaser' => array(
        'format' => 'default',
        'exclude' => 1,
      ),
      'full' => array(
        'format' => 'default',
        'exclude' => 1,
      ),
      4 => array(
        'format' => 'default',
        'exclude' => 0,
      ),
      2 => array(
        'format' => 'default',
        'exclude' => 0,
      ),
      3 => array(
        'format' => 'default',
        'exclude' => 0,
      ),
    ),
    'widget_active' => '1',
    'type' => 'number_integer',
    'required' => '0',
    'multiple' => '0',
    'db_storage' => '1',
    'module' => 'number',
    'active' => '1',
    'locked' => '0',
    'columns' => array(
      'value' => array(
        'type' => 'int',
        'not null' => false,
        'sortable' => true,
      ),
    ),
    'prefix' => '',
    'suffix' => '',
    'min' => '',
    'max' => '',
    'allowed_values' => '0 | No
1 | Yes',
    'allowed_values_php' => '',
    'widget' => array(
      'default_value' => array(
        0 => array(
          'value' => '',
        ),
      ),
      'default_value_php' => NULL,
      'label' => 'Question Locked',
      'weight' => '6',
      'description' => '',
      'type' => 'optionwidgets_buttons',
      'module' => 'optionwidgets',
    ),
  );
  return $array;
}