Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7178983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:02:33+00:00 2026-05-28T17:02:33+00:00

$instance = array( ‘field_name’ => $field_name, ‘entity_type’ => $entity, ‘bundle’ => $bundle, ‘field types’

  • 0
$instance = array(
      'field_name' => $field_name,
      'entity_type' => $entity,
      'bundle' => $bundle,
      'field types' => 'list_boolean',
      'widget' => array(
            'type' => 'options_onoff',
            'settings' => array('display_label' => 1)
        ),
      'default_value' => array(array('value' => 1)),
    );

this is not taken, and i have to save it twice in the admin contenttype – field/edit,
until it takes it …

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T17:02:34+00:00Added an answer on May 28, 2026 at 5:02 pm

    i now exported the finished field with the features module,
    and took the generated code – suddenly it works, with default_value

    i guess i was missing the property module on the field, also field types is inexistant ..

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an NSMutableArray. It's members eventually become members of an array instance in
I have an array for instance, Array { 3.0 at Index 0 2.0 at
I'm trying to perform a usort on an array inside an instance of a
How could I accomplish copying one jagged array to another? For instance, I have
What is the best way to scale a 2D image array? For instance, suppose
Possible Duplicate: How to delete an element from an array in php? For instance,
The code seems not working. // $counter is an instance of Zend_Db_Table_Abstract $counter->update(array('hits' =>
I'm trying to initialize and instance variable as an array as follows: class Arch
I'm trying to make a simple custom field field_book_year for the new node type
I have a class something like below, and I used instance variables (array) to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.