Skip to content

Commit

Permalink
Update PECE ARK Admin UI.
Browse files Browse the repository at this point in the history
  • Loading branch information
revagomes committed Mar 27, 2022
1 parent 560c80b commit 24fc000
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion profiles/pece/modules/pece/pece_ark/pece_ark.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name = PECE ARK - Archival Resource Key
description = Provides Archival Resource Key for PECE content.
core = 7.x
package = PECE
dependencies[] = views
dependencies[] = date
dependencies[] = pece_core
dependencies[] = pece_profile
dependencies[] = views
features[ctools][] = views:views_default:3.0
features[features_api][] = api:2
features[views_view][] = pece_ark_content_review
Expand Down
9 changes: 9 additions & 0 deletions profiles/pece/modules/pece/pece_ark/pece_ark.install
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,12 @@ function pece_ark_schema() {
function pece_ark_update_7001() {
pece_ark_set_default_vars();
}

/**
* Apply views feature ARK.
*/
function pece_ark_update_7002() {
if (module_exists('features')) {
features_revert(array('pece_ark' => array('views_view')));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ function pece_ark_views_default_views() {
$handler->display->display_options['fields']['status']['field'] = 'status';
$handler->display->display_options['fields']['status']['type'] = 'published-notpublished';
$handler->display->display_options['fields']['status']['not'] = 0;
/* Field: Content: Link to edit content */
$handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
$handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
$handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
$handler->display->display_options['fields']['edit_node']['label'] = 'Actions';
$handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;
/* Sort criterion: Content: Post date */
$handler->display->display_options['sorts']['created']['id'] = 'created';
$handler->display->display_options['sorts']['created']['table'] = 'node';
Expand All @@ -100,6 +106,7 @@ function pece_ark_views_default_views() {

/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['display_description'] = 'Administration page';
$handler->display->display_options['path'] = 'admin/config/services/ark/content-review';
$handler->display->display_options['menu']['type'] = 'tab';
$handler->display->display_options['menu']['title'] = 'ARK Content Review';
Expand Down Expand Up @@ -138,6 +145,7 @@ function pece_ark_views_default_views() {
t('Updated date'),
t('Published status'),
t('Page'),
t('Administration page'),
t('Block'),
t('Content set to receive ARKs'),
);
Expand Down

0 comments on commit 24fc000

Please sign in to comment.