Please add HOOK_splashify_config_alter()

Created on 12 January 2013, over 12 years ago
Updated 26 November 2024, 5 months ago

I needed to create a module that alters the behavior of splashify to limit the time-window for a splash page to appear (e.g. show on New Year's Day). The most straightforward way to do that was alter the $config variable in splashify.display.inc after it has been read in but before any logic happens. So I did the following:
<?php
$config = _splashify_get_config();
// permit other modules to modify $config
drupal_alter('splashify_config', $config);
>?

Now in my module, I did a hook_form_alter, including submit and validate handers, to manage my configuration settings, and I added a function MYMODULE_splashify_config_alter(&$config) {}, which changes splashify's $config['when_frequency'] to 'never' as appropriate for my application.

Attached is a patch against 7.x-1.x-dev.

Thanks!

✨ Feature request
Status

Closed: outdated

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States pdcarto

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡¦Ukraine AstonVictor

    I'm closing it because the issue was created a long time ago without any further steps.

    if you still need it then raise a new one.
    thanks

Production build 0.71.5 2024