diff --git a/entityqueue.install b/entityqueue.install index e14868d..c11bff0 100644 --- a/entityqueue.install +++ b/entityqueue.install @@ -277,3 +277,10 @@ function entityqueue_update_7002() { variable_del('entityqueue_broken_update_7001'); return $ret; } + +/** + * Unlocks entity queue field instances so they may be edited individually. + */ +function entityqueue_update_7003() { + db_query("UPDATE {field_config} SET locked = 0 WHERE field_name LIKE 'eq_%'"); +} diff --git a/entityqueue.module b/entityqueue.module index dce385f..3ab4cab 100644 --- a/entityqueue.module +++ b/entityqueue.module @@ -770,7 +770,7 @@ function _entityqueue_queue_ensure_instance(EntityQueue $queue) { } /** - * Creates a locked instance of a entityreference field on the specified bundle. + * Creates an instance of a entityreference field on the specified bundle. * * @param EntityQueue $queue * An EntityQueue object. @@ -806,7 +806,6 @@ function _entityqueue_create_entityreference_field($queue, $field_name, $entity_ 'cardinality' => FIELD_CARDINALITY_UNLIMITED, 'entity_types' => array($entity_type), 'translatable' => FALSE, - 'locked' => TRUE, 'settings' => array( 'target_type' => $queue->target_type, 'handler' => 'entityqueue', @@ -850,6 +849,7 @@ function entityqueue_field_widget_info() { 'settings' => array( 'match_operator' => 'CONTAINS', 'size' => 60, + 'add_location' => 'bottom', ), 'behaviors' => array( 'multiple values' => FIELD_BEHAVIOR_CUSTOM,