iLexN
9/6/2017 - 1:56 AM

Drual Path function

function for path - check admin path , get menu path

<?php

path_is_admin();

menu_get_object();

//libraries_get_path
libraries_get_path('jsoneditor') . '/jsoneditor.min.js';

//module path
drupal_get_path('module', 'scmp_content') . '/js/scmp_content_admin_jsoneditor.js';