Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First pass at Metatags HTML5 standard as per #255 #256

Merged
merged 1 commit into from Aug 24, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -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