Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Allow calling a callback in a filter when value is empty #3076

Closed
mbn18 opened this issue Nov 27, 2012 · 4 comments
Closed

Allow calling a callback in a filter when value is empty #3076

mbn18 opened this issue Nov 27, 2012 · 4 comments

Comments

@mbn18
Copy link
Contributor

mbn18 commented Nov 27, 2012

I think it might be useful to be able to call a callback when value is absent

Something like this:

$this->add($factory->createInput(array(
    'name'          => 'var_id',
    'callback_if_empty'   => array(
        'callback'      => array($model, 'getValue'),
        'messages'   => array(
            'callbackValue'  => "What ever",
        ),
    ),
)));
@ralphschindler
Copy link
Member

Can you provide a pull request for this feature request?

@samsonasik
Copy link
Contributor

ping @mbn18

@mbn18
Copy link
Contributor Author

mbn18 commented Feb 25, 2014

@ralphschindler , is this feature still needed?

@weierophinney
Copy link
Member

Closing due to inactivity, and uncertainty exactly which component this actually targets.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants