You are here

boxes.inc in Share Buttons, Related Posts, Content Analytics - Shareaholic 7

Same filename and directory in other branches
  1. 7.2 includes/boxes.inc

Boxes module integration.

File

includes/boxes.inc
View source
<?php

/**
 * @file
 * Boxes module integration.
 */

/**
 * Implementation of hook_default_box()
 */
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;
}

Functions

Namesort descending Description
sexybookmarks_default_box Implementation of hook_default_box()