I have wanted to assign dynamic values to #__assets.rules.
Using beforestore, I grab my values as an assoc array in the form of :
action i.e. edit which holds an array of usergroup ids as key and value as value....
$array = ( 'edit' => array('234' => 1, '345' => 1, '456' => 1), 'delete' => array('12' => 1, '345' => 1, '678' => 1) );
Then add this code:
// Establish DB connection $db = JFactory::getDbo(); $query = $db->getQuery(true); // then create your array, in the way you want to... $arrayOfRules = ...do stuff to create array // then assign array $config['storages']['#__content']['rules'] = $arrayOfRules;