You are here

function fastly_select_page in Fastly 7

Same name and namespace in other branches
  1. 7.2 fastly.module \fastly_select_page()

Menu callback. Redirect the user to the right page.

1 string reference to 'fastly_select_page'
fastly_menu in ./fastly.module
Implements hook_menu().

File

./fastly.module, line 133
Fastly module.

Code

function fastly_select_page() {
  if (variable_get('fastly_api_key', FALSE)) {
    $path = 'admin/config/services/fastly/config';
  }
  else {
    $path = 'admin/config/services/fastly/register';
  }
  drupal_goto($path);
}