You are here

function nodesquirrel_get_activate_link in Backup and Migrate 6.3

Same name and namespace in other branches
  1. 6.2 includes/destinations.nodesquirrel.inc \nodesquirrel_get_activate_link()
  2. 7.2 includes/destinations.nodesquirrel.inc \nodesquirrel_get_activate_link()

Get a helper link to activate a site and create a tree.

3 calls to nodesquirrel_get_activate_link()
backup_migrate_destination_nodesquirrel::edit_form in includes/destinations.nodesquirrel.inc
Get the form for the settings for this destination.
backup_migrate_nodesquirrel_settings_form in includes/destinations.nodesquirrel.inc
NodeSquirrel settings form.
nodesquirrel_get_activate_help_text in includes/destinations.nodesquirrel.inc
Get a helper link to activate a site and create a tree.

File

includes/destinations.nodesquirrel.inc, line 54
Functions to handle the NodeSquirrel backup destination.

Code

function nodesquirrel_get_activate_link() {
  $activate_link = l('nodesquirrel.com/activate', variable_get('nodesquirrel_activate_url', 'https://manage.nodesquirrel.com/activate'), array(
    'query' => array(
      'url' => url('', array(
        'absolute' => TRUE,
      )),
      'email' => variable_get('site_mail', ''),
      'configure' => url($_GET['q'], array(
        'absolute' => TRUE,
      )),
    ),
  ));
  return $activate_link;
}