Would it be possible to add an option to hide/show any information on repeating events i.e. the 'Repeats' tab and the repeating info added to the node

Its just that I've had to use preg_replace to remove the unwanted info from the node and comment out the following from the date_menu function in date.module:

  // Repeat dates tab on node
  if (arg(0) == 'node' && is_numeric(arg(1))) {
    $node = node_load(arg(1));
    if (date_repeat_type($node->type)) {
      $items[] = array(
        'path' => 'node/'. arg(1). '/repeats', 
        'title' => t('Repeats'), 
        'callback' => 'date_repeat_page', 
        'callback arguments' => array(arg(1)), 
        'type' => MENU_LOCAL_TASK, 
        );
    }

There must be an better way to do this

Comments

HansBKK’s picture

+1

Ideally by role - right now I'm hiding all the tabs via CSS, I'm sure I'll forget I did this later one :)

relates to http://drupal.org/node/305557, but I'm not sure exactly how - I don't want to show the "Repeats" tab anywhere for now, but would like to enable it for a scheduling content type later on. . .

KarenS’s picture

Version: 5.x-2.3 » 6.x-2.x-dev

No new features in D5, moving feature requests to D6.

freakalis’s picture

+1

I would really like to see this feature to. Ideally by role.

tyromind’s picture

ditto - and by role would be even awesomer

KarenS’s picture

Status: Active » Fixed

I've just added a permissions item for 'view date repeats' that you can set or unset by user type on the user permissions page.

tyromind’s picture

You rock Karen

vivianspencer’s picture

brilliant

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.