function panopoly_install_tasks in Panopoly 7
Same name and namespace in other branches
- 8.2 panopoly.install \panopoly_install_tasks()
Implements hook_install_tasks()
File
- ./
panopoly.profile, line 7
Code
function panopoly_install_tasks(&$install_state) {
$tasks = array();
// Add our custom CSS file for the installation process
drupal_add_css(drupal_get_path('profile', 'panopoly') . '/panopoly.css');
// Add the Panopoly app selection to the installation process
$panopoly_server = array(
'machine name' => 'panopoly',
'default apps' => array(
'panopoly_demo',
),
'default content callback' => 'panopoly_default_content',
);
require_once drupal_get_path('module', 'apps') . '/apps.profile.inc';
$tasks = $tasks + apps_profile_install_tasks($install_state, $panopoly_server);
// Add the Panopoly theme selection to the installation process
require_once drupal_get_path('module', 'panopoly_theme') . '/panopoly_theme.profile.inc';
$tasks = $tasks + panopoly_theme_profile_theme_selection_install_task($install_state);
return $tasks;
}