Hello everyone,
I am working with the quotes.module and am having some difficulty with hook_form. I am trying to remove the Title: field from the submission form, as a quote really does not need a title. It's minor, but I can not for the life of me figure it out and was hoping someone might be able to help. The hook_form code is pasted below. Thanks in advance!
/**
* Implementation of hook_form().
*/
function quotes_form(&$io_node) {
$the_output = '';
if (function_exists('taxonomy_node_form')) {
$the_output .= implode('', taxonomy_node_form('quotes', $io_node));
}
if (user_access('promote quotes to block')) {
$the_output .= form_checkbox(t('Display in quote blocks'), 'quotes_promote', 1, (isset($io_node->quotes_promote) ?
$io_node->quotes_promote : 1));
}
switch (arg(3)) {
case 'import':
$the_output .= form_radios(t('Format'), 'quotes_format', ($io_node->quotes_format ? $io_node->quotes_format : 'text'),
array('text' => t('Tab-separated text'), 'fortune' => t('Fortune file')), NULL, TRUE);
$the_output .= form_textarea(t('Quotes'), 'body', $io_node->body, 60, 20, NULL, NULL, TRUE);
break;
case 'upgrade':
if (!$io_node->body) {
$io_node->body = '';
$the_result = db_query_range('SELECT q.quote, q.author FROM {quotes_quotes} q ORDER BY q.qid',
variable_get('quotes_upgrade_start', 0), 1000);