Drupal Test
Each menu item has a key corresponding to a Drupal path being registered in hook_menu. Which of following is not a key used to register a path in hook_menu()?
"hook_js_alter" overrides JavaSript in Drupal. Which of the following statements are true?
$node_type_A = node_load($some_nid); $current_delta = get_current_delta($node_type_A->vid); $node_type_A->field_type_B_node_ref += array($current_delta + 1 => array('nid' => $node_type_B_nid)); $no...
By default, does Drupal Filefield allow uploading of javascript files?
By using the auto-complete field for a CCK nodereference, nodereference gives node id as [nid: node id]; which Drupal hook can be used to remove the bracket from the auto-complete list?
Drupal.behaviors should be used instead of jQuery.ready. Which of the following statements are not a good reason for this recommendation?
Drupal.behaviors should be used instead of jQuery.ready. Which of the following statements are not good reason for this recommendation?
function phptemplate_breadcrumb($breadcrumb) { if (!empty($breadcrumb)) { array_shift($breadcrumb); return '<div class="breadcrumb">'. implode(' › ', $breadcrumb) .'</div>'; } } Which...
function special_registration_form_alter(&$form, $form_state, $form_id) { if ($form_id == 'user_register' && 'user' == arg(0) && 'register' == arg(1)) { // snipped alteration code } } Wh...
Having a taxonomy associated with a node type. Using which function would it be possible to load/get the vocabulary information in the code?
How can a Drupal site be brought out of maintenance mode?
How can a Drupal site be taken offline or in maintenance mode using Drush?
How can a Drupal user's password be reset using Drush from the command line in Drupal 6.x?
How can a module's data be exposed to the Views 2 module using its API?
How can a new element that was created be validated, if hook_form_alter was used, and a new field was added to an existing form?
How can all the input filters that have been created in the code be applied?
How can an absolute date (as opposed to a relative date, or the current date) be set as the default value for a CCK datetime field in Drupal?
How can custom CSS rules be added to a Drupal page (content) without using themes?
How can the taxonomy term pages be themed?
How can the theme be changed in Drupal using a Drush command?
Is it possible to call Drupal functions in external PHP files?
require './includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); $db_result = db_query('SELECT * FROM {users}'); while($user_object = db_fetch_object($db_result)){ // .. code here ...
Suppose the user is on the folllowing URL: http://example.com/blog/odesk-skills-test?page=1#comment-123 The above URL path is an alias of the following URL path: http://example.com/node/8 What ...
Suppose there is a new version for a module that is installed on a Drupal 6 site. This new version contains some database updates. Do those database updates need to be applied manually? If so, how ...
The following are advantages of using Drupal Views vs. custom module development EXCEPT:
What is the best practice when adding a div with some text at the end of a page?
What is the best way to create multiple blocks from a single module?
What is the best way to display the plain HTML content of view's node using only one .tpl.php file for all views?
What is the best way to set up development for Drupal-based websites so that many developers can work on their own copy and before updating the master/central copy?
What is the naming convention for a preprocessor function for the CCK fields in Drupal if the template called content-field-field_transmission_make_model.tpl?
What is the order in which template files (.tpl) will be displayed in a "view"?
When sending email from Drupal, how can the default "From" address be changed?
Which function can be used to attach images to a particular node at runtime?
Which function can be used to invoke a hook in all enabled modules in Drupal?
Which of following will have a negative effect on the performance of a Drupal website?
Which of the following are best practices for scaling Drupal for a high traffic site?
Which of the following are ways to display SQL queries executed by a Drupal view?
Which of the following condition(s) is/are not suited for using custom Drupal nodes?
Which of the following is not a desired way to create a custom page with custom layout in Drupal?
Which of the following is the best way to pass arguments to the drupal_get_form() function?
Which of the following is the correct function to get the current theme of a Drupal site?
Which of the following is the correct method to fire another process when a new node is created in Drupal?
Which of the following is the correct way to add a user's first and last name in Drupal?
Which of the following is the correct way to change the execution order of Drupal modules?
Which of the following is the correct way to combine the values of two fields in one field display in Drupal views, when using a field display style?
Which of the following is the correct way to control the maximum character length in views, while displaying field content?
Which of the following is the correct way to customize the template for a view thas has been created using CCK and the Views 2 module?
Which of the following is the correct way to display recent nodes/posts created by a user on their profile page?
Which of the following is the correct way to enable special characters in Drupal user's URL?
Which of the following is the correct way to get the current theme path in Drupal?
Which of the following is the correct way to get the node ID of the page being currently executed?
Which of the following is the correct way to get the page URL of a page in Drupal?
Which of the following is the correct way to include CSS and JavaScript files to a particular node in Drupal 6?
Which of the following is the correct way to install another Drupal that shares the same modules, themes, libraries and core code of an existing site, while using a new database?
Which of the following is the correct way to make a partial or substring search in Drupal?
Which of the following is the correct way to remove core CSS files and add custom CSS files to a theme?
Which of the following is the correct way to resolve the array_flip() error in Drupal which flips string and integer values?
Which of the following is the correct way to restrict users, with an email address ending in example.org (user@example.org, test@example.org, etc), from registering an account?
Which of the following statements are not best practices for implementing page handler include files in Drupal?
Which of the following statements are true for the code below? function custom_module_menu_alter(&$items) { $items['xyx/abc']['page callback'] = 'custom_module_showcontent'; }
Which of the following statements are true?
Which of the following will not change the value of a CCK field automatically as soon as the user creates a new node?
Which one of following makes use of the Features module in Drupal?
Which software architectural pattern is Drupal most closely associated with?
With the faceted search module it is possible to?