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.
We recently re-structured our modules folder for contrib/custom etc. This included moving ckeditor_link from sites/all/modules/ckeditor_link to sites/all/modules/contrib/ckeditor_link. Registry Rebuild dealt with updating all the paths. However, the settings in ckeditor_settings.settings
store the complete path at the point of saving in admin due to ckeditor_load_plugins()
:
$arr['ckeditor_link'] = array(
'name' => 'drupal_path',
'desc' => t('Support for the CKEditor Link module'),
'path' => $base_path . drupal_get_path('module', 'ckeditor_link') . '/plugins/link/',
'buttons' => FALSE,
'default' => 't'
);
I wonder if it's be better to store module and path relative to the module, rather than the entire path, and then to convert that on render. That way you wont end up storing out of date paths.
Comments
Comment #1
hass CreditAttribution: hass commentedSame problem here - always after moving from Prodution to Development. Please remove the hard coded path.
Comment #2
hass CreditAttribution: hass commentedComment #3
hass CreditAttribution: hass commented