function data_ui_edit_title_form in Data 6
Same name and namespace in other branches
- 7 data_ui/data_ui.admin.inc \data_ui_edit_title_form()
Edit title form.
1 string reference to 'data_ui_edit_title_form'
- data_ui_menu in data_ui/
data_ui.module - Implementation of hook_menu()
File
- data_ui/
data_ui.admin.inc, line 648 - Admin UI functions.
Code
function data_ui_edit_title_form(&$form_state, $table) {
drupal_set_title(check_plain($table
->get('title')));
$form = array();
$form['#table'] = $table;
// Table title.
$form['title'] = array(
'#type' => 'textfield',
'#title' => t('Title'),
'#description' => t('Natural name of the table.'),
// Do not escape the title: show the user what they originally entered.
'#default_value' => $table
->get('title'),
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Save'),
);
return $form;
}