You are here

function apps_app_module_name_load in Apps 7

Path object loader for an App via machine name only.

This assumes there is only one app of that machine name.

File

./apps.module, line 567
Module file for Apps

Code

function apps_app_module_name_load($app_name) {
  apps_include('manifest');
  $app = apps_apps_all(array(
    'machine_name' => $app_name,
  ));
  return !empty($app[$app_name]) ? $app[$app_name] : FALSE;
}