You are here

function sexybookmarks_default_box in Share Buttons, Related Posts, Content Analytics - Shareaholic 7

Same name and namespace in other branches
  1. 7.2 includes/boxes.inc \sexybookmarks_default_box()

Implementation of hook_default_box()

File

includes/boxes.inc, line 10
Boxes module integration.

Code

function sexybookmarks_default_box() {
  $boxs = array();
  $box = new stdClass();
  $box->disabled = FALSE;

  /* Edit this to true to make a default box disabled initially */
  $box->api_version = 1;
  $box->delta = 'example_sexybookmarks';
  $box->plugin_key = 'simple';
  $box->title = 'Example: SexyBookmarks';
  $box->description = 'Example: SexyBookmarks';
  $box->options = array(
    'body' => '<?php
$profile = \'default\';
$url = url(\'<front>\', array(\'absolute\' => TRUE));
$title = variable_get(\'site_name\', \'Drupal\');

print theme(\'sexybookmarks\', array(
  \'profile\' => $profile,
  \'url\' => $url,
  \'title\' => $title,
  \'id\' => \'block-sexybookmarks-example\',
));
?>',
    'format' => '3',
  );
  $boxs['example_sexybookmarks'] = $box;
  return $boxs;
}