You are here

function sharethis_block_contents in ShareThis 7

Same name and namespace in other branches
  1. 7.2 sharethis.module \sharethis_block_contents()

custom html block

Return value

string

1 call to sharethis_block_contents()
sharethis_block_block_view in sharethis_block/sharethis_block.module
Implementation of hook_block_view().

File

sharethis_block/sharethis_block.module, line 25

Code

function sharethis_block_contents() {

  // First get all of the options for the sharethis widget from the database:
  $data_options = get_options_array();
  $path = isset($_GET['q']) ? $_GET['q'] : '<front>';
  $mPath = url($_GET['q'], array(
    'absolute' => TRUE,
  ));
  $mTitle = drupal_get_title();
  return get_button_HTML($data_options, $mPath, $mTitle);
}