Skip to content

Commit

Permalink
Issue backdrop-contrib#173. Move the "comment" node property info to …
Browse files Browse the repository at this point in the history
…comment.info.inc
  • Loading branch information
argiepiano committed Apr 6, 2024
1 parent 784d564 commit 9da4a8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
7 changes: 4 additions & 3 deletions modules/comment.info.inc
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,12 @@ function entity_plus_metadata_comment_entity_property_info_alter(&$info) {
// Add info about comment module related properties to the node entity.
$properties = &$info['node']['properties'];
$properties['comment'] = array(
'label' => t("Comments allowed"),
'description' => t("Whether comments are allowed on this node: 0 = no, 1 = closed (read only), 2 = open (read/write)."),
'label' => t("Comments settings"),
'description' => t("Whether comments are allowed on this node."),
'setter callback' => 'entity_plus_property_verbatim_set',
'setter permission' => 'administer comments',
'setter permission' => 'administer comment settings',
'type' => 'integer',
'options list' => 'entity_plus_metadata_node_comment_settings_options_list',
);
$properties['comments'] = array(
'label' => t("Comments"),
Expand Down
9 changes: 0 additions & 9 deletions modules/node.info.inc
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,6 @@ function entity_plus_metadata_node_entity_property_info() {
'setter callback' => 'entity_plus_property_verbatim_set',
'access callback' => 'entity_plus_metadata_node_revision_access',
);
$properties['comment'] = array(
'label' => t('Comment settings'),
'description' => t("Whether the comments are allowed on this node."),
'type' => 'integer',
'setter callback' => 'entity_plus_property_verbatim_set',
'setter permission' => 'administer comment settings',
'schema field' => 'comment',
'options list' => 'entity_plus_metadata_node_comment_settings_options_list',
);
return $info;
}

Expand Down

0 comments on commit 9da4a8f

Please # to comment.