Skip to content

Commit

Permalink
Merge pull request #256 from sylus/master
Browse files Browse the repository at this point in the history
First pass at Metatags HTML5 standard as per #255
  • Loading branch information
sylus committed Aug 24, 2012
2 parents 71522b0 + 532b6ad commit 203c726
Show file tree
Hide file tree
Showing 5 changed files with 275 additions and 164 deletions.
@@ -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.");
}
@@ -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

0 comments on commit 203c726

Please sign in to comment.