Skip to content

Commit

Permalink
Added Coast sub-module
Browse files Browse the repository at this point in the history
  • Loading branch information
johncook committed Jan 28, 2015
1 parent 9394595 commit 98b3c9b
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
5 changes: 5 additions & 0 deletions favicon_generator_coast/favicon_generator_coast.info
@@ -0,0 +1,5 @@
name = Favicon Generator Coast
description = Configures Coast Settings
core = 7.x
package = Favicon Generator
dependencies[] = favicon_generator
13 changes: 13 additions & 0 deletions favicon_generator_coast/favicon_generator_coast.install
@@ -0,0 +1,13 @@
<?php

/**
* @file
*
* Favicon Generator Coast - Installation file.
*/

/**
* Implements hook_uninstall().
*/
function favicon_generator_coast_uninstall() {
}
19 changes: 19 additions & 0 deletions favicon_generator_coast/favicon_generator_coast.module
@@ -0,0 +1,19 @@
<?php
/**
* @file
* OpenGraph image creation.
*/

/**
* Implements hook_favicon_generator_spec().
*/
function favicon_generator_coast_favicon_generator_spec($settings) {
$array = array();
$array = array('coast' => array());

$array['coast']['picture_aspect'] = 'background_and_margin';
$array['coast']['background_color'] = $settings['color'];
$array['coast']['margin'] = ceil($settings['margin'] * 100 / 57) . '%';

return $array;
}

0 comments on commit 98b3c9b

Please sign in to comment.