diff --git a/includes/scald.admin.inc b/includes/scald.admin.inc index 40e2048..ff35f24 100644 --- a/includes/scald.admin.inc +++ b/includes/scald.admin.inc @@ -24,13 +24,6 @@ function scald_admin_dashboard() { $message = '

' . t('This is the Scald administration dashboard. It allows to manage Atom Types (entity bundles) and Representation Contexts (entity view modes). In each context, it is possible to choose which transcoder (for Image atoms, it is image style) is used and how atom is rendered using different players. The context settings is for the atom itself, while "manage display" is to controlled how are fields displayed. If you are strange to the terminology, please read the short README.txt or the long documentation pages.', array('@readme' => 'http://drupalcode.org/project/scald.git/blob/refs/heads/7.x-1.x:/README.txt', '@doc' => 'https://drupal.org/node/1652740')) . '

'; drupal_set_message($message); - // Tell the user, he can switch to a new export with Features. - if (!variable_get('scald_switch_feature_export', FALSE)) { - $content .= '

' . t('Scald Context Features Export') . '

'; - $switch_form = drupal_get_form('scald_switch_to_feature_form'); - $content .= drupal_render($switch_form); - } - $content .= '

' . t('Scald Unified Atom Types') . '

'; $content .= '

' . t('List of Scald Unified Atom Types. Each type is an entity bundle and has different fields, displays and contexts. Multiple providers (e.g. local image provider, Flickr provider) can provide atoms of the same type and share the same transcoders, players.') . '

'; @@ -63,6 +56,13 @@ function scald_admin_dashboard() { $content .= theme('table', $table); + // Tell the user, he can switch to a new export with Features. + if (!variable_get('scald_switch_feature_export', FALSE) && module_exists('features')) { + $content .= '

' . t('Scald Context Features Export') . '

'; + $switch_form = drupal_get_form('scald_switch_to_feature_form'); + $content .= drupal_render($switch_form); + } + // Display a context listing. $content .= '

' . t('Scald Contexts') . '

'; $content .= '

' . t('List of all Scald Contexts, thoses created through the UI and even those hidden or defined by other modules.') . '

';