- πΊπΈUnited States nicxvan
Do we still want this? For example breakpoint had a single check at this point.
If we have the extension object then there is a type.
Quoting @webchick from #1734642-152: Move breakpoint module into core β "I wonder if it's worth a wrapper function that can handle the "is it a module or is it a theme?" question and dispatch accordingly."
This so we can avoid doing things like:
function my_function ($theme_key or _module_name) {
$found = FALSE;
$themes = list_themes();
if (isset($themes[$theme_key or _module_name])) {
$found = 'theme';
}
elseif (module_exists($theme_key or _module_name)) {
$found = 'module';
}
else {
return FALSE;
}
// ....
switch ($found) {
case 'theme':
// use $themes[$theme_key]->info['name']
break;
case 'module':
// use the machine name
break;
}
}
Active
11.0 π₯
extension system
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Do we still want this? For example breakpoint had a single check at this point.
If we have the extension object then there is a type.