Skip to content
Snippets Groups Projects
Commit d0db282c authored by Dave Reid's avatar Dave Reid
Browse files

Fixed form for DrupalOptionsMetaTag.

parent 5f37bb91
No related branches found
No related tags found
No related merge requests found
......@@ -118,7 +118,7 @@ class DrupalOptionsMetaTag extends DrupalDefaultMetaTag {
$form['value'] = isset($this->info['form']) ? $this->info['form'] : array();
$form['value'] += array(
'#type' => $form_info['type'],
'#type' => 'select',
'#title' => $this->info['label'],
'#description' => !empty($this->info['description']) ? $this->info['description'] : '',
'#default_value' => isset($this->data['value']) ? $this->data['value'] : '',
......
......@@ -399,6 +399,7 @@ function metatag_field_attach_form($entity_type, $entity, &$form, &$form_state,
);
// Build the form for each metatag.
// @todo Group these metatags
$options['token types'] = array(token_get_entity_mapping('entity', $entity_type));
foreach ($metatags as $metatag => $metatag_info) {
$metatag_instance = metatag_get_instance($metatag, isset($entity->metatags[$metatag]) ? $entity->metatags[$metatag] : array());
......
......@@ -5,25 +5,10 @@
* Metatag integration for the metatag_opengraph module.
*/
///**
// * Implements hook_metatag_info().
// */
//function metatag_metatag_info() {
// $info['description'] = array(
// 'label' => t('Description'),
// 'settings' => array('max_length' => 255),
// 'default_widget' => 'text_textfield',
// 'default_formatter' => 'text_default',
// );
//
// return $info;
//
//}
/**
* Implements hook_metatag_info().
*/
function metatag_opensearch_metatag_info() {
function metatag_opengraph_metatag_info() {
$info['og:title'] = array(
'label' => t('Open Graph title'),
'description' => t('The title of your object as it should appear within the graph, e.g., <em>The Rock</em>.'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment