arr = [1, 2, 3, 4, 5] // array initial
var removeItem = 2; // item do array que deverá ser removido
arr = jQuery.grep(arr, function(value) {
return value != removeItem;
});
// new array
Web Experts suggestions, Tips, Recommendations to make your website earn more for you and attract visitors in few possible ways, Web Designing, Web Development, SEO Tips
intitle:"User account" inurl:"user/login"
Or you can use this link to search for drupal sites in Google.I am aware this only lists sites with user login linked to somewhere and not blocked by Robots.txt.I have also seen suggestions that looking for a CSS file might work, however with Drupal's CSS aggregation, this could be difficult.Please share any alternatives, my search above (currently) shows around 2,620,000 (on Google UK). How can we make this better?
<?php
$menuItems = menu_tree_page_data('primary-links');
foreach($menuItems as $key => $m) {
//check current active menu
if ($m['link']['in_active_trail'] && $menuItems [$key]['below']) {
$menu = menu_tree_output($menuItems [$key]['below']);
}
}
//print the menu
print $menu;
?>
Make sure you include the php delimiters in your code. Press save.