source: sipes/modules_contrib/revisioning/revisioning.admin.inc @ 6e81fb4

stableversion-3.0
Last change on this file since 6e81fb4 was 177a560, checked in by José Gregorio Puentes <jpuentes@…>, 8 años ago

se agrego el directorio de modulos contribuidos de drupal

  • Propiedad mode establecida a 100644
File size: 2.0 KB
Línea 
1<?php
2
3/**
4 * @file
5 * Admin configuration settings for Revisioning.
6 */
7
8/**
9 * Menu callback for admin settings.
10 */
11function revisioning_admin_configure() {
12  $form['revisioning_view_and_edit_links'] = array(
13    '#type' => 'fieldset',
14    '#title' => t('Configure which revision is loaded when clicking on a view or edit link'),
15    '#description' => t('This section allows you to configure which revision is loaded when clicking on links for viewing or editing moderated content, that is content for which the check-box <strong>New revision in draft, pending moderation</strong> is ticked on the %link page. If not ticked for this content type, current and latest revisions will be one and the same, so that the options behave identically.',
16      array('%link' => 'admin/content/node-type/<type>'))
17  );
18  $form['revisioning_view_and_edit_links']['revisioning_view_callback'] = array(
19    '#type' => 'radios',
20    '#title' => t('Links to view content default to'),
21    '#options' => array(
22      REVISIONING_LOAD_CURRENT => t('displaying the current revision'),
23      REVISIONING_LOAD_LATEST  => t('displaying the latest revision (reverts to current revision, if the user is not permitted to view revisions of the content type in question)')),
24    '#default_value' => variable_get('revisioning_view_callback', REVISIONING_LOAD_CURRENT),
25    '#description' => t('The first option represents default core behaviour.')
26  );
27  $form['revisioning_view_and_edit_links']['revisioning_edit_callback'] = array(
28    '#type' => 'radios',
29    '#title' => t('Links to edit content default to'),
30    '#options' => array(
31      REVISIONING_LOAD_CURRENT => t('editing the current revision'),
32      REVISIONING_LOAD_LATEST  => t('editing the latest revision (reverts to current revision, if the user is not permitted to view revisions of the content type in question)')),
33    '#default_value' => variable_get('revisioning_edit_callback', REVISIONING_LOAD_CURRENT),
34    '#description' => t('The first option represents default core behaviour.')
35  );
36  return system_settings_form($form);
37}
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.