Projet

Général

Profil

Révision 599a39cd

Ajouté par Assos Assos il y a environ 3 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/date/date_tools/date_tools.module
2 2

  
3 3
/**
4 4
 * @file
5
 * @todo.
5
 * Primary hook implementations for the Date Tools module
6 6
 */
7 7

  
8 8
/**
......
17 17
      return '<p>' . t('Change a date field from one type to another. Very experimental, use at your own risk!') . '</p>';
18 18

  
19 19
    case 'admin/config/date/tools/date_wizard':
20

  
21
      $output = t("Fill out the following form to auto-create a date content type, with a datetime field and matching pre-configured calendar. If the calendar module is enabled and the option to create a calendar is chosen, a calendar and upcoming events block will be created, an ical feed will be added to the calendar. Nodes created from this new content type will include a link to the calendar, and the calendar will have a link to the 'add new date' form. You can also add new date fields to an existing content type by entering the existing content type name instead of creating a new one.") .
22
      '</p><p>' .
23
      t('Only a limited set of options are displayed here to make this easy to set up. Once the date has been created you will be able to make other changes to the date settings and add other fields to your new content type on the Manage fields screen. You can also make changes to the calendar on the Views edit page.') .
24
      '</p>';
20
      $output = t("Fill out the following form to auto-create a date content type, with a datetime field and matching pre-configured calendar. If the calendar module is enabled and the option to create a calendar is chosen, a calendar and upcoming events block will be created, an ical feed will be added to the calendar. Nodes created from this new content type will include a link to the calendar, and the calendar will have a link to the 'add new date' form. You can also add new date fields to an existing content type by entering the existing content type name instead of creating a new one.");
21
      $output .= '</p><p>';
22
      $output .= t('Only a limited set of options are displayed here to make this easy to set up. Once the date has been created you will be able to make other changes to the date settings and add other fields to your new content type on the Manage fields screen. You can also make changes to the calendar on the Views edit page.');
23
      $output .= '</p>';
25 24
      return $output;
26 25
  }
27 26
}
......
41 40
 * Implements hook_menu().
42 41
 */
43 42
function date_tools_menu() {
44

  
45 43
  $items = array();
46 44
  $items['admin/config/date/tools'] = array(
47
    'title'    => 'Date Tools',
45
    'title' => 'Date Tools',
48 46
    'description' => 'Date Wizard and other tools to manage and create dates and calendars. ',
49
    'access arguments'   => array('administer date tools'),
47
    'access arguments' => array('administer date tools'),
50 48
    'page callback' => 'date_tools_page',
51 49
  );
52 50
  $items['admin/config/date/tools/about'] = array(
......
68 66
    'file' => 'date_tools.wizard.inc',
69 67
  );
70 68

  
71
  // @codingStandardsIgnoreStart
72
  /**
73
  $items['admin/config/date/tools/change'] = array(
74
    'title'    => 'Change type',
75
    'access arguments'   => array('administer date tools'),
76
    'page callback' => 'drupal_get_form',
77
    'page arguments' => array('date_tools_change_type_form'),
78
    'type' => MENU_LOCAL_TASK,
79
    'weight' => 3,
80
    'file' => 'date_tools.change_type.inc',
81
  );
82
  */
83
  // @codingStandardsIgnoreEnd
69
  // $items['admin/config/date/tools/change'] = array(
70
  //   'title' => 'Change type',
71
  //   'access arguments' => array('administer date tools'),
72
  //   'page callback' => 'drupal_get_form',
73
  //   'page arguments' => array('date_tools_change_type_form'),
74
  //   'type' => MENU_LOCAL_TASK,
75
  //   'weight' => 3,
76
  //   'file' => 'date_tools.change_type.inc',
77
  // );
84 78

  
85 79
  return $items;
86 80
}
......
89 83
 * Main Date Tools page.
90 84
 */
91 85
function date_tools_page() {
92
  $content = '';
93

  
94
  $content .= t('Dates and calendars can be complicated to set up. The !date_wizard makes it easy to create a simple date content type and related calendar.', array('!date_wizard' => l(t('Date wizard'), 'admin/config/date/tools/date_wizard')));
95

  
96
  return $content;
86
  return t('Dates and calendars can be complicated to set up. The !date_wizard makes it easy to create a simple date content type and related calendar.', array('!date_wizard' => l(t('Date wizard'), 'admin/config/date/tools/date_wizard')));
97 87
}

Formats disponibles : Unified diff