function view_custom_table_edit_custom_table_form in Views Custom Table 7
Function to edit custom table description.
1 string reference to 'view_custom_table_edit_custom_table_form'
- view_custom_table_menu in ./
view_custom_table.module - Implements hook_menu().
File
- ./
view_custom_table.admin.inc, line 194 - File for administrative functions.
Code
function view_custom_table_edit_custom_table_form($form, &$form_state, $table_id = NULL) {
$table_info = view_custom_table_load_table($table_id);
$form['table_name'] = array(
'#title' => t('Table Name'),
'#type' => 'textfield',
'#disabled' => TRUE,
'#default_value' => $table_info->table_name,
'#description' => t('Don not enter drupal core tables. it will create conflict.'),
);
$form['table_description'] = array(
'#title' => t('Description'),
'#type' => 'textarea',
'#rows' => 5,
'#default_value' => $table_info->description,
);
$form['actions'] = array(
'#type' => 'actions',
);
$form['actions']['save'] = array(
'#type' => 'submit',
'#value' => t('Save'),
'#validate' => array(
'view_custom_table_edit_custom_table_form_validate',
),
);
$form['actions']['cancel'] = array(
'#type' => 'markup',
'#markup' => l(t('Cancel'), 'admin/structure/views/custom_table'),
);
return $form;
}