/[drupal]/contributions/modules/epublish/epublish.module
ViewVC logotype

Diff of /contributions/modules/epublish/epublish.module

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

revision 1.15.2.8, Wed Aug 12 10:00:26 2009 UTC revision 1.15.2.9, Sun Sep 27 14:06:43 2009 UTC
# Line 519  function epublish_nodeapi(&$node, $op, $ Line 519  function epublish_nodeapi(&$node, $op, $
519  function epublish_block($op = 'list', $delta = 0) {  function epublish_block($op = 'list', $delta = 0) {
520    if ($op == 'list') {    if ($op == 'list') {
521      $blocks = array();      $blocks = array();
522      $blocks[0]['info'] = t('E-Publish');      $blocks[0]['info'] = t('E-Publish List of Publications');
523      foreach (epublish_sections() as $sid => $title) {      foreach (epublish_sections() as $sid => $title) {
524        $blocks[$sid]['info'] = t('E-publish section: ') . t($title);        $blocks[$sid]['info'] = t('E-publish section: ') . t($title);
525      }      }
# Line 785  function theme_epublish_edition_referenc Line 785  function theme_epublish_edition_referenc
785   */   */
786  function epublish_pub_page() {  function epublish_pub_page() {
787    $pub = arg(1);    $pub = arg(1);
788    $ed = arg(2); //) ? arg(2) : 'current';    $ed = arg(2) ? arg(2) : 'current';
789    if (is_numeric($pub)) {    if (is_numeric($pub)) {
790      $publication = epublish_get_pub($pub);      $publication = epublish_get_pub($pub);
791    }    }
# Line 2220  function epublish_form_edition($form_sta Line 2220  function epublish_form_edition($form_sta
2220      $edit->month = substr($edit->pubdate, 4, 2);      $edit->month = substr($edit->pubdate, 4, 2);
2221      $edit->day = substr($edit->pubdate, 6, 2);      $edit->day = substr($edit->pubdate, 6, 2);
2222    }    }
2223    $years = drupal_map_assoc(range(date("Y", time())-15, date("Y", time())+1));    $years = drupal_map_assoc(range(date("Y", time())-40, date("Y", time())+1));
2224    $months = array('01' => t("January"), '02' => t("February"), '03' => t("March"), '04' => t("April"), '05' => t("May"), '06' => t("June"), '07' => t("July"), '08' => t("August"), '09' => t("September"), '10' => t("October"), '11' => t("November"), '12' => t("December"));    $months = array('01' => t("January"), '02' => t("February"), '03' => t("March"), '04' => t("April"), '05' => t("May"), '06' => t("June"), '07' => t("July"), '08' => t("August"), '09' => t("September"), '10' => t("October"), '11' => t("November"), '12' => t("December"));
2225    $days = array('01' => '1', '02' => '2', '03' => '3', '04' => '4', '05' => '5', '06' => '6', '07' => '7', '08' => '8', '09' => '9', '10' => '10',    $days = array('01' => '1', '02' => '2', '03' => '3', '04' => '4', '05' => '5', '06' => '6', '07' => '7', '08' => '8', '09' => '9', '10' => '10',
2226                  '11' => '11', '12' => '12', '13' => '13', '14' => '14', '15' => '15', '16' => '16', '17' => '17', '18' => '18', '19' => '19', '20' => '20',                  '11' => '11', '12' => '12', '13' => '13', '14' => '14', '15' => '15', '16' => '16', '17' => '17', '18' => '18', '19' => '19', '20' => '20',

Legend:
Removed from v.1.15.2.8  
changed lines
  Added in v.1.15.2.9

  ViewVC Help
Powered by ViewVC 1.1.2