function countryicons_help in Country Icons 6
Same name and namespace in other branches
- 6.2 countryicons.module \countryicons_help()
- 7.2 countryicons.module \countryicons_help()
- 7 countryicons.module \countryicons_help()
Implementation of hook_help().
File
- ./
countryicons.module, line 34 - A collection of country icons, and an API for retrieving them.
Code
function countryicons_help($path, $arg) {
switch ($path) {
case 'admin/help#countryicons':
$output = '<p>' . t('This module provides a collection of country icons, and an API for retrieving them.') . '</p>';
$output .= '<h3>' . t('API') . '</h3>';
$output .= '<p>' . t('The following functions are provided:') . '</p>';
$output .= '<dl>';
$output .= '<dt><strong>countryicons_get_iconsets()</strong></dt>';
$output .= '<dd>' . t('Get an array with all iconsets and their details.') . '</dd>';
$output .= '<dt><strong>countryicons_get_iconset($iconset)</strong></dt>';
$output .= '<dd>' . t('Get an array with requested iconset and its details.') . '</dd>';
$output .= '<dt><strong>countryicons_get_icon_path($code, $iconset = "shiny")</strong></dt>';
$output .= '<dd>' . t('Get the path to an icon.') . '</dd>';
$output .= '<dt><strong>theme_countryicons_icon($code, $iconset = "shiny", $alt = "", $title = "", $attributes = NULL)</strong></dt>';
$output .= '<dd>' . t('Theme a country icon. Returns a string containing the image tag.') . '</dd>';
$output .= '<dt><strong>theme_countryicons_icon_sprite($code, $iconset = "shiny")</strong></dt>';
$output .= '<dd>' . t('Theme a country icon using a css spriting technique adapted from this <a href="!css_url">list apart article</a>.', array(
'!css_url' => 'http://www.alistapart.com/articles/sprites',
));
$output .= t('The css sprite and some css was generated using the <a href="!sprite_generator_url">Project Fondue CSS Sprite Generator</a>.', array(
'!sprite_generator_url' => 'http://spritegen.website-performance.org/',
));
$output .= t('Returns a string containing the icon markup') . '</dd>';
$output .= '</dl>';
$output .= '<h3>' . t('Icon sets') . '</h3>';
$output .= '<p>' . t('Additional icon sets may be provided... [More documentation to follow]') . '</p>';
return $output;
}
}