Work in progress: partway through making profile_detail DB-accessible

This commit is contained in:
Brion Vibber
2011-02-03 17:15:12 -08:00
parent d1a96dc7af
commit 672eb17e94
2 changed files with 152 additions and 5 deletions

View File

@@ -62,6 +62,9 @@ class ExtendedProfilePlugin extends Plugin
case 'profiledetailsettingsaction':
require_once dirname(__FILE__) . '/' . $lower . '.php';
return false;
case 'profile_detail':
require_once dirname(__FILE__) . '/' . ucfirst($lower) . '.php';
return false;
default:
return true;
}
@@ -87,6 +90,16 @@ class ExtendedProfilePlugin extends Plugin
return true;
}
function onCheckSchema()
{
$schema = Schema::get();
$schema->ensureTable('profile_detail', Profile_detail::schemaDef());
// @hack until key definition support is merged
Profile_detail::fixIndexes($schema);
return true;
}
function onEndAccountSettingsProfileMenuItem($widget, $menu)
{
// TRANS: Link title attribute in user account settings menu.