function hook_simplemeta_info in Simple Meta 7
Same name and namespace in other branches
- 6.2 simplemeta.api.php \hook_simplemeta_info()
Return information about SimpleMeta property.
See simplemeta_simplemeta_info() for example of SimpleMeta properties definition.
Return value
array An array whose keys are SimpleMeta properties' machine names and whose values are arrays containing the keys:
- title: Human-readable name of the property.
- form: SimpleMeta edition form element callback for defined property
- theme: SimpleMeta property theming callback used to build output content, must be defined via hook_theme().
- validate: (optional) additional SimpleMeta form validation callback.
- submit: (optional) additional SimpleMeta form submission callback.
See also
1 function implements hook_simplemeta_info()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- simplemeta_simplemeta_info in ./
simplemeta.module - Implements hook_simplemeta_info().
1 invocation of hook_simplemeta_info()
- simplemeta_get_info in ./
simplemeta.module - Get info about meta elements from modules.
File
- ./
simplemeta.api.php, line 26 - Documents available hooks of the SimpleMeta module.
Code
function hook_simplemeta_info() {
$info = array();
$info['description'] = array(
'title' => t('Description'),
'form' => 'simplemeta_form_description',
'validate' => NULL,
'submit' => NULL,
'theme' => 'simplemeta_meta_description',
);
return $info;
}