diff --git a/src/cambridge/cambridge.install b/src/cambridge/cambridge.install index 553923a01b27ea03b89e2b6f59491ce845ba390d..2f1b8077685fd3f63c0f8c651ebcd81574d91268 100644 --- a/src/cambridge/cambridge.install +++ b/src/cambridge/cambridge.install @@ -23,12 +23,18 @@ function cambridge_install() { // News articles shouldn't be promoted to front page. variable_set('node_options_news_article', array('status')); + // Disable previewing on news articles. + variable_set('node_preview_news_article', DRUPAL_DISABLED); + // Display date and author information on news articles. variable_set('node_submitted_news_article', TRUE); // News articles shouldn't be on a menu. variable_set('menu_options_news_article', array()); + // Disable previewing on questions and answers pages. + variable_set('node_preview_questions_and_answers', DRUPAL_DISABLED); + $instances = array( array( 'entity_type' => 'node', diff --git a/src/cambridge_base.inc b/src/cambridge_base.inc index 7ecf6ebd1a9895d2e564daa097d94f96ee441a15..408baa2d5e67814ca151f41e744b96964660b23d 100644 --- a/src/cambridge_base.inc +++ b/src/cambridge_base.inc @@ -123,6 +123,9 @@ function cambridge_base_install() { // Not promoted to front page. variable_set('node_options_' . $type->type, array('status')); + // Disable previewing. + variable_set('node_preview_' . $type->type, DRUPAL_DISABLED); + // Don't display date and author information. variable_set('node_submitted_' . $type->type, FALSE); }