function consumers_update_8105 in Consumers 8
Create a default consumer.
File
- ./
consumers.install, line 91 - Install, update and uninstall functions for Consumers.
Code
function consumers_update_8105() {
Consumer::create([
'label' => 'Default Consumer',
'description' => 'This is the default consumer. This was created programmatically when the Consumers module was first installed. Feel free to edit, or delete this.',
'is_default' => TRUE,
])
->save();
}