Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
metatag-3494326
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
metatag-3494326
Commits
d0db282c
Commit
d0db282c
authored
13 years ago
by
Dave Reid
Browse files
Options
Downloads
Patches
Plain Diff
Fixed form for DrupalOptionsMetaTag.
parent
5f37bb91
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
metatag.inc
+1
-1
1 addition, 1 deletion
metatag.inc
metatag.module
+1
-0
1 addition, 0 deletions
metatag.module
metatag_opengraph/metatag_opengraph.metatags.inc
+1
-16
1 addition, 16 deletions
metatag_opengraph/metatag_opengraph.metatags.inc
with
3 additions
and
17 deletions
metatag.inc
+
1
−
1
View file @
d0db282c
...
...
@@ -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'
]
:
''
,
...
...
This diff is collapsed.
Click to expand it.
metatag.module
+
1
−
0
View file @
d0db282c
...
...
@@ -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
());
...
...
This diff is collapsed.
Click to expand it.
metatag_opengraph/metatag_opengraph.metatags.inc
+
1
−
16
View file @
d0db282c
...
...
@@ -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_open
searc
h_metatag_info
()
{
function
metatag_open
grap
h_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>.'
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment