function phorum_integrate_settings() { if (!user_access('access administration pages')) { return message_access(); } $form['phorum_integrate_home'] = array( '#type' => 'textfield', '#title' => t('Phorum installation directory'), '#default_value' => variable_get('phorum_integrate_home', 'phorum'), '#description' => t("The directory where Phorum was installed (relative to the Drupal root)."), '#maxlength' => '255', '#size' => '50' ); $form['phorum_integrate_url'] = array( '#type' => 'textfield', '#title' => t('Phorum page url'), '#default_value' => variable_get('phorum_integrate_url', 'discuss'), '#description' => t("The Drupal path where the forum will appear."), '#maxlength' => '255', '#size' => '50' ); $form['phorum_integrate_template'] = array( '#type' => 'textfield', '#title' => t('Phorum template'), '#default_value' => variable_get('phorum_integrate_template', 'embed_phorum'), '#description' => t("The template used to style forum display."), '#maxlength' => '255', '#size' => '40' ); $form['phorum_integrate_db_prefix'] = array( '#type' => 'textfield', '#title' => t('Prefix to phorum tables'), '#default_value' => variable_get('phorum_integrate_db_prefix', 'phorum_'), '#description' => t("The prefix to the names of the Phorum database tables."), '#maxlength' => '255', '#size' => '40' ); return $form; }