Commit 372ef9ff authored by Dave Reid's avatar Dave Reid

by Dave Reid: Sync documentation between branches.

parent aeefdd47
......@@ -422,6 +422,8 @@ function xmlsitemap_link_bundle_settings_form(array &$form, array $form_state, $
if ($buttons) {
$form['actions'] = array(
'#type' => 'container',
'#attributes' => array('class' => array('form-actions')),
'#weight' => 100,
);
$form['actions']['save'] = array(
'#type' => 'submit',
......
......@@ -101,6 +101,11 @@ function xmlsitemap_menu_form_menu_edit_menu_alter(&$form, $form_state) {
// xmlsitemap_menu_xmlsitemap_process_menu_links($mlids);
//}
/**
* Implements hook_form_FORM_ID_alter().
*
* @see menu_edit_item()
*/
function xmlsitemap_menu_form_menu_edit_item_alter(&$form, $form_state) {
$menu_name = $form['parent']['#default_value'];
$menu_name = substr($menu_name, 0, strpos($menu_name, ':'));
......
......@@ -84,6 +84,7 @@ function xmlsitemap_user_user_cancel($edit, $account, $method) {
* @see xmlsitemap_add_link_bundle_settings()
*/
function xmlsitemap_user_form_user_profile_form_alter(&$form, $form_state) {
// Add the link options.
module_load_include('inc', 'xmlsitemap', 'xmlsitemap.admin');
xmlsitemap_add_form_link_options($form, 'user', 'user', $form['#user']->uid);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment