You are here

function apps_app_callback in Apps 7

Find an App callback and ensure the proper file is required.

Parameters

$app: The app

$key: The call back key

Return value

string The callback function on the given App for the provided key

6 calls to apps_app_callback()
apps_app_access in ./apps.module
Access callback for the operations that can be performed on an app.
apps_app_config_page in ./apps.pages.inc
Callback for app config page
apps_app_disable in ./apps.pages.inc
Callback for app disable
apps_app_enable in ./apps.pages.inc
Callback for the enable action
apps_demo_content_form in ./apps.manifest.inc
Form callback for demo content

... See full list

File

./apps.manifest.inc, line 596
Handles pulling and processing of app data from the server

Code

function apps_app_callback($app, $key) {
  module_load_include("inc", $app['machine_name'], $app['machine_name'] . ".app");
  if (isset($app['file'])) {
    require_once $app['file'];
  }
  if (isset($app[$key]) && module_exists($app['machine_name']) && function_exists($app[$key])) {
    return $app[$key];
  }
}