Same name and namespace in other branches
- 8.x-1.x exif.drush.inc \__drush_exif_list_active_types() 1 comment
- 8.x-2.x exif.drush.inc \__drush_exif_list_active_types() 1 comment
List the enabled content types.
Return value
array
2 calls to __drush_exif_list_active_types()
- drush_exif_list in ./
exif.drush.inc - Drush callback.
- drush_exif_update in ./
exif.drush.inc - Drush callback.
File
-
./
exif.drush.inc, line 43
Code
function __drush_exif_list_active_types() {
$types = array();
// Fill up array with checked nodetypes.
foreach (variable_get('exif_nodetypes', array()) as $type) {
if ($type != "0") {
$types[] = array(
'entity' => 'node',
'type' => $type,
);
}
}
foreach (variable_get('exif_mediatypes', array()) as $type) {
if ($type != "0") {
$types[] = array(
'entity' => 'file',
'type' => $type,
);
}
}
return $types;
}