Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the feedzy-rss-feeds domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /data01/virt126885/domeenid/www.saksadogi.com/codegurus.eu/wp-includes/functions.php on line 6121
drupal Archives - CodeGurus

Tag: drupal

  • Requiring files in Drupal 6 & 7

    Requiring files in Drupal 6 & 7

    I have seen a lot of Drupal modules where requiring php files is done like this $module = ‘my_module’; require_once(DRUPAL_ROOT . ‘/’ . drupal_get_path(‘module’, $module) . ‘/test.php’); While this is totally right i still encourage you to use special function for this called “module_load_include“. module_load_include(‘php’, ‘my_module’, ‘test’);

  • Drupal template suggestions

    Drupal template suggestions

    To find out possibilities for naming template files add following line to related template hook in your template.php eg THEME_preprocess_HOOK(): print_r($variables[‘theme_hook_suggestions’]); Some hooks to look at _html, _page, _node, _block, _pane, _views_view_field, _comment, _search_result, _search_results, _user_profile.