Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #256 from sylus/master
First pass at Metatags HTML5 standard as per #255
- Loading branch information
Showing
5 changed files
with
275 additions
and
164 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
modules/apps/wetkit_web_usability/wetkit_metatag/wetkit_metatag.admin.inc
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,31 @@ | ||
<?php | ||
|
||
/** | ||
* Menu callback for Dublin Core configuration. | ||
*/ | ||
function wetkit_metatag_config() { | ||
$form = array(); | ||
|
||
// Add a term Prefix option. | ||
$form['wetkit_metatag_prefix'] = array( | ||
'#type' => 'select', | ||
'#title' => t('Dublin Core Prefix'), | ||
'#description' => t('Choose a prefix to be rendered on page display.'), | ||
'#options' => array( | ||
'DCTERMS' => 'dcterms', | ||
'DC' => 'dc', | ||
), | ||
'#default_value' => _metadata_dc_prefix(), | ||
); | ||
$form['#submit'][] = 'wetkit_metatag_submit'; | ||
|
||
return system_settings_form($form); | ||
} | ||
|
||
/** | ||
* Submit callback for Dublin Core configuration. | ||
*/ | ||
function wetkit_metatag_submit() { | ||
// Give feedback to the user to reset the cache to take effect. | ||
drupal_set_message("The cache needs to be cleared for this setting to take effect."); | ||
} |
17 changes: 9 additions & 8 deletions
17
modules/apps/wetkit_web_usability/wetkit_metatag/wetkit_metatag.info
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
name = "WetKit MetaTags" | ||
description = "Core Feature: Installs and configures default metatags that can be easily extended for your site" | ||
core = "7.x" | ||
package = "WetKit" | ||
php = "5.2.4" | ||
version = "7.x-1.0" | ||
dependencies[] = "metatag" | ||
features['features_api']['api:1'] = TRUE; | ||
name = WetKit MetaTags Dublin Core (HTML5) | ||
description = Installs and configures default wetkit metatags that can be easily extended for your site | ||
core = 7.x | ||
package = WetKit | ||
php = 5.2.4 | ||
version = 7.x-1.0 | ||
dependencies[] = i18n | ||
dependencies[] = i18n_variable | ||
dependencies[] = metatag |
Oops, something went wrong.