function data_ui_edit_title_form in Data 7
Same name and namespace in other branches
- 6 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 - Implements hook_menu().
File
- data_ui/
data_ui.admin.inc, line 715 - Admin UI functions.
Code
function data_ui_edit_title_form($form, &$form_state, $table) {
$table = data_get_table($table);
drupal_set_title($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;
}