You are here

function panels_get_path in Panels 5.2

Same name and namespace in other branches
  1. 6.3 panels.module \panels_get_path()
  2. 6.2 panels.module \panels_get_path()
  3. 7.3 panels.module \panels_get_path()

panels path helper function

43 calls to panels_get_path()
panels_add_button in ./panels.module
Add a single button to a form.
panels_add_content in includes/display_edit.inc
panels_admin_content_types_custom in content_types/custom.inc
Return all content types available.
panels_admin_content_types_custom_php in content_types/custom_php.inc
Return all content types available.
panels_admin_content_types_form in content_types/form.inc
Return all content types available.

... See full list

File

./panels.module, line 230
panels.module Core API for Panels. Provides display editing and rendering capabilities.

Code

function panels_get_path($file, $base_path = false, $module = 'panels') {
  if ($base_path) {
    $output = base_path();
  }
  return $output . drupal_get_path('module', $module) . '/' . $file;
}