You are here

function uptolike_constructor in Uptolike share buttons 7

Build constructor iframe.

1 call to uptolike_constructor()
uptolike_ctools_export_ui_form in plugins/export_ui/uptolike_ctools_export_ui.inc
Define the preset add/edit form.

File

./uptolike.module, line 698
Main file for Uptolike module.

Code

function uptolike_constructor() {
  $url = UPTOLIKE_HOST . 'constructor.html';
  $cryptkey = uptolike_cryptkey();
  if (!empty($cryptkey)) {
    $query = array(
      'mail' => variable_get('uptolike_email', NULL),
      'partner' => UPTOLIKE_PARTNER,
      'projectId' => uptolike_project_id(),
      'signature' => $cryptkey,
    );
    $url .= '?' . drupal_http_build_query($query);
  }
  $variables = array();
  $variables['url'] = $url;
  $variables['class'] = 'uptolike-constructor';
  return theme('uptolike_iframe', $variables);
}