array( // Blocks admin page. '#tabs-wrapper a[href$=admin/build/block/add]', // Add Block '#blocks a[href~=admin/build/block/configure]' => array( // configure 'additionalJavascript' => array('misc/collapse.js'), ), '#blocks a[href~=admin/build/block/delete]', // delete ), 'admin/build/path' => array( // URL aliases admin page. '#tabs-wrapper a[href$=admin/build/path/add]', // Add alias 'td:nth-child(3) a[href~=admin/build/path/edit]', // edit alias 'td:nth-child(4) a[href~=admin/build/path/delete]', // delete alias ), 'admin/content/taxonomy' => array( // Taxonomy admin page. // TODO: If there are not more than one items to start with, d-n-d files aren't loaded into page. // This causes trouble when the 2nd item is added, no d-n-d. // Might be bug in taxonomy table building (or at least inconsistancy). '#tabs-wrapper a[href$=admin/content/taxonomy/add/vocabulary]' => array( // Add vocabulary 'additionalJavascript' => array('misc/tabledrag.js'), ), '#taxonomy-overview-vocabularies td a:contains('. t('edit vocabulary') .')', // edit vocabulary '#taxonomy-overview-vocabularies td a:contains('. t('list terms') .')' => array( // list terms 'noReload' => true, 'additionalJavascript' => array('misc/tabledrag.js'), ), '#taxonomy-overview-vocabularies td a:contains('. t('add terms') .')' => array( // add terms 'noReload' => true, 'additionalJavascript' => array('misc/collapse.js'), ), ), 'admin/content/types' => array( // Content Type admin page '#tabs-wrapper a[href$=admin/content/types/add]' => array( // Add content type 'additionalJavascript' => array('misc/collapse.js'), ), 'table td:nth-child(4) a, table td:nth-child(5) a, table td:nth-child(7) a' // edit, add field, delete ), 'admin/content/types/list' => array( // Content Type admin page '#tabs-wrapper a[href$=admin/content/types/add]' => array( // Add content type 'additionalJavascript' => array('misc/collapse.js'), ), 'table td:nth-child(4) a, table td:nth-child(5) a, table td:nth-child(7) a' // edit, add field, delete ), 'admin/content/node' => array( // Existing Content admin page '#node-admin-content td a:contains('. t('edit') .')' => array( // edit 'additionalJavascript' => array('misc/collapse.js'), // TODO: teaser.js not working: Drupal.settings.teaser has no properties // 'additionalJavascript' => array('misc/collapse.js', 'misc/teaser.js'), ) ), 'page_node_form' => array( // Node edit form 'a[href$=filter/tips]' => array( // Fixes insane "More information..." link 'noReload' => true, //TODO 'addCloseButton' => true - just an idea. ) ), 'admin/content/comment' => array( // Comments admin page. 'table td:nth-child(2) a' => array( // view (TODO: popup too small) 'noReload' => true, 'additionalCss' => array(), //TODO: needs some custom css to get #comments to stay in the popup (no -25px margin). ), '#comment-admin-overview td a:contains('. t('edit') .')' => array( // edit 'additionalJavascript' => array('misc/collapse.js'), ), ), 'admin/user/rules' => array( // Access rules admin page. '#tabs-wrapper a[href$=admin/user/rules/add]', // Add rule 'table td:nth-child(4) a, table td:nth-child(5) a', // edit, delete '#tabs-wrapper a[href$=/admin/user/rules/check]' => array( // Check rule 'noReload' => true, ), ), 'admin/user/user' => array( // Manage all users admin page. //Add user (TODO: Can't test, keeps crashing apache!) '#tabs-wrapper a[href$=admin/user/user/create]' => array( // TODO: "translate has no properties" user.js line 16. 'additionalJavascript' => array(drupal_get_path('module', 'user') .'/user.js'), ), '#user-admin-account td:nth-child(2) a' => array( // View the user 'noReload' => true, ), ), 'menu_overview_form' => array( // Menu admin form. // Add Item, , edit, delete '#tabs-wrapper a:eq(1), table#menu-overview td:nth-child(5) a, table#menu-overview td:nth-child(6) a', '#tabs-wrapper a:eq(2)' => array( // Edit menu: update just page title. 'updateTitle' => true, 'noReload' => true, ), ), // CCK - Manage fields page. 'content_admin_field_overview_form' => array( 'div#tabs-wrapper a:eq(0)' => array( // Edit - ISSUE: returns to different page. 'updateTitle' => true, 'noReload' => true, 'additionalJavascript' => array('misc/collapse.js'), 'forceReturn' => 'admin/content', // TODO: if workflow goes to 'admin/content', treat it as success. ), 'div#tabs-wrapper a:eq(2)' => array( // Display fields 'noReload' => true, ), 'div#tabs-wrapper a:eq(3), div#tabs-wrapper a:eq(4)', // Add field, Add group 'table td:nth-child(5) a' => array( // configure 'singleRow' => array( 'td:eq(0)' ), // Just update the row (still expiremental). ), 'table td:nth-child(6) a', // remove ), ); }