You are here

function simplemeta_form_title in Simple Meta 7

Same name and namespace in other branches
  1. 6.2 simplemeta.module \simplemeta_form_title()

Meta title form element callback.

Parameters

object $meta: meta object

Return value

array form element

1 string reference to 'simplemeta_form_title'
simplemeta_simplemeta_info in ./simplemeta.module
Implements hook_simplemeta_info().

File

./simplemeta.module, line 201
SimpleMeta module.

Code

function simplemeta_form_title($meta) {
  $form = array(
    '#type' => 'textfield',
    '#title' => t('Title'),
    '#maxlength' => 255,
    '#default_value' => isset($meta->data['title']) ? $meta->data['title'] : '',
  );
  return $form;
}