/[drupal]/drupal/modules/book/book.admin.inc
ViewVC logotype

Diff of /drupal/modules/book/book.admin.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.26 by webchick, Sun Nov 8 10:02:41 2009 UTC revision 1.27 by dries, Sat Nov 21 08:58:23 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: book.admin.inc,v 1.25 2009/11/01 12:11:10 dries Exp $  // $Id: book.admin.inc,v 1.26 2009/11/08 10:02:41 webchick Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 38  function book_admin_settings() { Line 38  function book_admin_settings() {
38    $types = node_type_get_names();    $types = node_type_get_names();
39    $form['book_allowed_types'] = array(    $form['book_allowed_types'] = array(
40      '#type' => 'checkboxes',      '#type' => 'checkboxes',
41      '#title' => t('Allowed book outline types'),      '#title' => t('Content types allowed in book outlines'),
42      '#default_value' => array('book'),      '#default_value' => array('book'),
43      '#options' => $types,      '#options' => $types,
44      '#description' => t('Select content types which users with the %add-perm permission will be allowed to add to the book hierarchy. Users with the %outline-perm permission can add all content types.', array('%add-perm' => t('add content to books'),  '%outline-perm' => t('administer book outlines'))),      '#description' => t('Users with the %outline-perm permission can add all content types.', array('%add-perm' => t('add content to books'),  '%outline-perm' => t('administer book outlines'))),
45      '#required' => TRUE,      '#required' => TRUE,
46    );    );
47    $form['book_child_type'] = array(    $form['book_child_type'] = array(
48      '#type' => 'radios',      '#type' => 'radios',
49      '#title' => t('Default child page type'),      '#title' => t('Content type for child pages'),
50      '#default_value' => 'book',      '#default_value' => 'book',
51      '#options' => $types,      '#options' => $types,
     '#description' => t('The content type for the %add-child link must be one of those selected as an allowed book outline type.', array('%add-child' => t('Add child page'))),  
52      '#required' => TRUE,      '#required' => TRUE,
53    );    );
54    $form['array_filter'] = array('#type' => 'value', '#value' => TRUE);    $form['array_filter'] = array('#type' => 'value', '#value' => TRUE);

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

  ViewVC Help
Powered by ViewVC 1.1.3