function acquia_agent_settings_page in Acquia Connector 6
Same name and namespace in other branches
- 6.2 acquia_agent/acquia_agent.pages.inc \acquia_agent_settings_page()
- 7.3 acquia_agent/acquia_agent.pages.inc \acquia_agent_settings_page()
- 7 acquia_agent/acquia_agent.pages.inc \acquia_agent_settings_page()
- 7.2 acquia_agent/acquia_agent.pages.inc \acquia_agent_settings_page()
Main page function
1 string reference to 'acquia_agent_settings_page'
- acquia_agent_menu in acquia_agent/
acquia_agent.module - Implementation of hook_menu().
File
- acquia_agent/
acquia_agent.pages.inc, line 459 - Acquia Agent configuration page.
Code
function acquia_agent_settings_page($arg = NULL) {
$identifier = acquia_agent_settings('acquia_identifier');
$key = acquia_agent_settings('acquia_key');
$path = drupal_get_path('module', 'acquia_agent');
$banner = theme('image', $path . '/acquia_vertical_banner.png');
drupal_add_css($path . '/acquia_agent.css', 'module', 'all', FALSE);
if ($identifier && $key || $arg == 'connection') {
return acquia_agent_settings_form_page($banner);
}
else {
drupal_set_title(t('Get a free 30 day trial of the Acquia Network'));
return drupal_get_form('acquia_agent_an_trial_form', $banner);
}
}