Skip to content

Commit 238801b

Browse files
committed
Remove text from status
1 parent 6eb4667 commit 238801b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "medienbaecker/kirby-modules",
33
"description": "Easily add modules to your pages",
4-
"version": "2.8.0",
4+
"version": "2.8.1",
55
"license": "MIT",
66
"authors": [
77
{

lib/functions.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,14 @@ function addToModulesRegistry(array $registry, string $name, string $blueprintPa
116116

117117
// Set up default values for status and navigation
118118
if(!array_key_exists('status', $blueprintArray)) {
119-
$blueprintArray['status'] = ['draft' => true, 'listed' => true];
119+
$blueprintArray['status'] = [
120+
'draft' => [
121+
'text' => false
122+
],
123+
'listed' => [
124+
'text' => false
125+
]
126+
];
120127
}
121128
if(!array_key_exists('navigation', $blueprintArray)) {
122129
$blueprintArray['navigation'] = ['status' => 'all', 'template' => 'all'];

0 commit comments

Comments
 (0)