Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
name = Favicon Generator Coast | ||
description = Configures Coast Settings | ||
core = 7.x | ||
package = Favicon Generator | ||
dependencies[] = favicon_generator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* | ||
* Favicon Generator Coast - Installation file. | ||
*/ | ||
|
||
/** | ||
* Implements hook_uninstall(). | ||
*/ | ||
function favicon_generator_coast_uninstall() { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |