I thought of this while filing #2384...
I was thinking something like project_get_info($project_name, $property = NULL)
that would auto-detect project type (from the .info file or the system table?). If $property
is omitted, then an array of all the project info would be returned (keyed by property), else the specific property defined in $property
. This would allow us to get a specific project property like this:
$human_readable_name = project_get_info('devel', 'name');
...instead of this:
$module_info = system_get_info('module', 'devel');
$human_readable_name = $module_info['name'];
...while still being able to do things like this:
$module_info = project_get_info('devel');
$human_readable_name = $module_info['name'];
Recent comments
After alot of trials, i have done the obvious and translated the whole block for different languages with each property condition as follows: ->propertyCondition('langcode', 'en...
How to get the current page language?
Thanks so much! It's working now: I was able to transfer the docroot files to the containing directory without the need for a second database or any manual configuration export/import/sync...
Backup & Migrate Config: There was a problem creating field...database table with the name already exists.
Ah, I see. Sorry, I hadn't clicked the link and assumed it was the instructions for upgrading from Drupal 7. If you are simply copying a site from one location on a server to another, the...
Backup & Migrate Config: There was a problem creating field...database table with the name already exists.