Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
HansBKK CreditAttribution: HansBKK commented+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. . .
Comment #2
KarenS CreditAttribution: KarenS commentedNo new features in D5, moving feature requests to D6.
Comment #3
freakalis CreditAttribution: freakalis commented+1
I would really like to see this feature to. Ideally by role.
Comment #4
tyromind CreditAttribution: tyromind commentedditto - and by role would be even awesomer
Comment #5
KarenS CreditAttribution: KarenS commentedI've just added a permissions item for 'view date repeats' that you can set or unset by user type on the user permissions page.
Comment #6
tyromind CreditAttribution: tyromind commentedYou rock Karen
Comment #7
vivianspencer CreditAttribution: vivianspencer commentedbrilliant