Skip to content

Commit

Permalink
Remove text from status
Browse files Browse the repository at this point in the history
  • Loading branch information
medienbaecker committed Jun 7, 2024
1 parent 6eb4667 commit 238801b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "medienbaecker/kirby-modules",
"description": "Easily add modules to your pages",
"version": "2.8.0",
"version": "2.8.1",
"license": "MIT",
"authors": [
{
Expand Down
9 changes: 8 additions & 1 deletion lib/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,14 @@ function addToModulesRegistry(array $registry, string $name, string $blueprintPa

// Set up default values for status and navigation
if(!array_key_exists('status', $blueprintArray)) {
$blueprintArray['status'] = ['draft' => true, 'listed' => true];
$blueprintArray['status'] = [
'draft' => [
'text' => false
],
'listed' => [
'text' => false
]
];
}
if(!array_key_exists('navigation', $blueprintArray)) {
$blueprintArray['navigation'] = ['status' => 'all', 'template' => 'all'];
Expand Down

0 comments on commit 238801b

Please sign in to comment.