Révision e33d3026
Ajouté par Julien Enselme il y a presque 10 ans
drupal7/modules/field/field.crud.inc | ||
---|---|---|
540 | 540 |
* // Fetch an instance info array. |
541 | 541 |
* $instance_info = field_info_instance($entity_type, $field_name, $bundle_name); |
542 | 542 |
* // Change a single property in the instance definition. |
543 |
* $instance_info['definition']['required'] = TRUE;
|
|
543 |
* $instance_info['required'] = TRUE; |
|
544 | 544 |
* // Write the changed definition back. |
545 |
* field_update_instance($instance_info['definition']);
|
|
545 |
* field_update_instance($instance_info); |
|
546 | 546 |
* @endcode |
547 | 547 |
* |
548 | 548 |
* @throws FieldException |
Formats disponibles : Unified diff
Update drupal to 7.30