You are here

function apps_app_page_path in Apps 7

Centralize the generation of App paths

Parameters

$app: The app array

string $op: The path type

Return value

string A path to the app operation

9 calls to apps_app_page_path()
apps_app_access in ./apps.module
Access callback for the operations that can be performed on an app.
apps_app_disable in ./apps.pages.inc
Callback for app disable
apps_app_enable in ./apps.pages.inc
Callback for the enable action
apps_app_install in ./apps.pages.inc
Callback for app install TODO: check to see the app is install able and then install TODO: should goto config page but pass on the current destination NOTE: it is expected that this page would be called with a drupal desination set
apps_app_uninstall in ./apps.pages.inc
Callback for app uninstall

... See full list

File

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

Code

function apps_app_page_path($app, $op = 'details') {
  if (isset($app['machine_name'])) {
    return "admin/apps/{$app['server']['name']}/{$app['machine_name']}/{$op}";
  }
}