You are here

function getdirections_returnlink_defaults in Get Directions 7.3

2 calls to getdirections_returnlink_defaults()
getdirections_settings_form in ./getdirections.admin.inc
Function to display the getdirections admin settings form
theme_getdirections_show in ./getdirections.module
Theme to use for when one or no locations are supplied.

File

./getdirections.module, line 895
Fetches google map directions.

Code

function getdirections_returnlink_defaults() {
  $defaults = array(
    'node_enable' => 0,
    'node_link' => t('Return to page'),
    'user_enable' => 0,
    'user_link' => t('Return to page'),
    'taxonomy_term_enable' => 0,
    'taxonomy_term_link' => t('Return to page'),
    'comment_enable' => 0,
    'comment_link' => t('Return to page'),
  );
  $getdirections_returnlink_defaults = variable_get('getdirections_returnlink', array());
  $newdefaults = getdirections_adjust_vars($defaults, $getdirections_returnlink_defaults);
  return $newdefaults;
}