Expand functions for Module Extras

jeroendesloovere's Avatar


19 Jun, 2012 07:58 AM

I would love to see more functions to control the Module Extras.


// function that allows you to update a value for a module extra
$id = 1;
$label = 'hidden';
$value = 'Y';

BackendModel::updateExtra($id, $label, $value);

// function that allows you to update some data for a module extra
$id = 1;
$label = 'extra_label';
$value = 'This label is been updated';

BackendModel::updateExtraData($id, $label, $value);

// function that gets extras, looking a certain data value

$module = 'newmodule';
$field = 'view_id';
$viewId = 5;

BackendModel::getExtrasForData($module, $field, $viewId);

// delete all items from previous function
BackendModel::deleteExtrasForData($module, $field, $viewId);

Which modules could use it?

  1. 1 Posted by jeroendesloover... on 27 Feb, 2013 10:01 AM

    jeroendesloovere's Avatar

    This functionality is integrated into the core.
    This discussion can be closed.

  2. Dieter W closed this discussion on 27 Feb, 2013 11:12 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac