Skip to content
Snippets Groups Projects
Commit df72330e authored by Sol Villar's avatar Sol Villar Committed by NuCivic Devops
Browse files

Refactored code.

parent 098559d6
Branches
No related tags found
No related merge requests found
......@@ -312,7 +312,7 @@ function dkan_datastore_node_view($node, $view_mode, $langcode) {
$type = dkan_datastore_node_type();
if ($node->type == $type) {
$status = dkan_datastore_status($node);
if (user_access('manage datastore') && ($status = dkan_datastore_status($node)) && $view_mode == 'full') {
if (user_access('manage datastore') && $status && $view_mode == 'full') {
if ($status === DKAN_DATASTORE_FILE_EXISTS) {
drupal_set_message(t('Your file for this resource is not added to the datastore. Click "Manage Datastore" to import file into the datastore.'));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment